Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-api
Commits
529e7302
Commit
529e7302
authored
Dec 30, 2024
by
liwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
fc6f5e70
4d1ba464
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
14 deletions
+41
-14
MemInfoRepository.java
...a/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
+6
-2
opmArticleDTO.java
...va/org/rcisoft/business/memInfo/entity/opmArticleDTO.java
+1
-1
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+4
-3
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+30
-8
No files found.
src/main/java/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
View file @
529e7302
...
...
@@ -78,8 +78,12 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
List
<
CmsActivity
>
getCmsActivityList
(
@Param
(
"entity"
)
peopleNumberDTO
peopleNumberDTO
);
List
<
opmArticleDTO
>
getArticleCountByDateRange
(
@Param
(
"startDate"
)
LocalDate
startDate
,
@Param
(
"endDate"
)
LocalDate
endDate
);
List
<
opmArticleDTO
>
getArticleCountByDateRange
Yes
(
@Param
(
"startDate"
)
LocalDate
startDate
,
@Param
(
"endDate"
)
LocalDate
endDate
);
List
<
opmArticleDTO
>
getArticleCountByMonthRange
(
@Param
(
"startDateMonth"
)
LocalDate
startDateMonth
,
@Param
(
"endDate"
)
LocalDate
endDate
);
List
<
opmArticleDTO
>
getArticleCountByMonthRangeYes
(
@Param
(
"startDateMonth"
)
LocalDate
startDateMonth
,
@Param
(
"endDate"
)
LocalDate
endDate
);
List
<
opmArticleDTO
>
getArticleCountByDateRangeNo
(
@Param
(
"startDate"
)
LocalDate
startDate
,
@Param
(
"endDate"
)
LocalDate
endDate
);
List
<
opmArticleDTO
>
getArticleCountByMonthRangeNo
(
@Param
(
"startDateMonth"
)
LocalDate
startDateMonth
,
@Param
(
"endDate"
)
LocalDate
endDate
);
}
src/main/java/org/rcisoft/business/memInfo/entity/opmArticleDTO.java
View file @
529e7302
...
...
@@ -31,6 +31,6 @@ public class opmArticleDTO extends CyIdIncreEntity<opmArticleDTO> {
private
String
articleNum
;
private
Date
updateD
ate
;
private
String
d
ate
;
}
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
529e7302
...
...
@@ -402,11 +402,12 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
ArticleExamStatus
list
=
new
ArticleExamStatus
();
//审核通过
list
.
setArticleExamStatusDayYes
(
baseMapper
.
getArticleCountByDateRange
(
startDate
,
endDate
));
list
.
setArticleExamStatusMonthYes
(
baseMapper
.
getArticleCountByMonthRange
(
startDateMonth
,
endDate
));
list
.
setArticleExamStatusDayYes
(
baseMapper
.
getArticleCountByDateRange
Yes
(
startDate
,
endDate
));
list
.
setArticleExamStatusMonthYes
(
baseMapper
.
getArticleCountByMonthRange
Yes
(
startDateMonth
,
endDate
));
//审核未通过
list
.
setArticleExamStatusDayNo
(
baseMapper
.
getArticleCountByDateRangeNo
(
startDate
,
endDate
));
list
.
setArticleExamStatusMonthNo
(
baseMapper
.
getArticleCountByMonthRangeNo
(
startDateMonth
,
endDate
));
return
list
;
}
...
...
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
529e7302
...
...
@@ -385,11 +385,11 @@
</select>
<select
id=
"queryOpmArticlesPaged"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
select
a.create_date,
u.name as create
Name
,
t.topic_name as topic
Name
a.create_date
as createDate
,
u.name as create
User
,
t.topic_name as topic
from opm_article a
left join sys
.
user u on u.business_id = a.create_by
left join sys
_
user u on u.business_id = a.create_by
left join opm_topic t on t.business_id = a.topic_id
where a.del_flag = 0
and a.is_article = 1
...
...
@@ -449,10 +449,10 @@
where c.del_flag = 0
and NOT (c.end_time
<
#{entity.firstDay} OR c.start_time
>
#{entity.lastDay})
</select>
<select
id=
"getArticleCountByDateRange"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
<select
id=
"getArticleCountByDateRange
Yes
"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
SELECT
DATE(a.update_date) as date,
COUNT(1) as
count
COUNT(1) as
articleNum
FROM opm_article a
WHERE a.del_flag = 0
AND a.is_article = 1
...
...
@@ -460,10 +460,10 @@
AND DATE(a.update_date) BETWEEN #{startDate} AND #{endDate}
GROUP BY DATE(a.update_date)
</select>
<select
id=
"getArticleCountByMonthRange"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
<select
id=
"getArticleCountByMonthRange
Yes
"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
SELECT
DATE_FORMAT(a.update_date, '%Y-%m') as date,
COUNT(1) as
count
COUNT(1) as
articleNum
FROM opm_article a
WHERE a.del_flag = 0
AND a.is_article = 1
...
...
@@ -471,5 +471,27 @@
AND DATE_FORMAT(a.update_date, '%Y-%m') BETWEEN #{startDateMonth} AND #{endDate}
GROUP BY DATE_FORMAT(a.update_date, '%Y-%m')
</select>
<select
id=
"getArticleCountByDateRangeNo"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
SELECT
DATE(a.update_date) as date,
COUNT(1) as articleNum
FROM opm_article a
WHERE a.del_flag = 0
AND a.is_article = 1
AND a.exam_status = 0
AND DATE(a.update_date) BETWEEN #{startDate} AND #{endDate}
GROUP BY DATE(a.update_date)
</select>
<select
id=
"getArticleCountByMonthRangeNo"
resultType=
"org.rcisoft.business.memInfo.entity.opmArticleDTO"
>
SELECT
DATE_FORMAT(a.update_date, '%Y-%m') as date,
COUNT(1) as articleNum
FROM opm_article a
WHERE a.del_flag = 0
AND a.is_article = 1
AND a.exam_status = 0
AND DATE_FORMAT(a.update_date, '%Y-%m') BETWEEN #{startDateMonth} AND #{endDate}
GROUP BY DATE_FORMAT(a.update_date, '%Y-%m')
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment