Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
580859d6
Commit
580859d6
authored
Feb 21, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷参数统计
parent
0fcfd98f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
+4
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
+7
-0
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+27
-0
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
View file @
580859d6
...
...
@@ -35,4 +35,8 @@ public interface EventTrackMapper extends BaseMapper<EventTrack> {
List
<
EventTrackDeptNumVo
>
queryGropByList
();
Integer
getExamTotal
(
@Param
(
"subType"
)
String
subType
,
@Param
(
"year"
)
String
year
);
Integer
getResearchTotal
(
@Param
(
"year"
)
String
year
);
Integer
getResearchJoinTotal
(
@Param
(
"year"
)
String
year
);
}
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
580859d6
...
...
@@ -157,6 +157,13 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
if
(
Objects
.
equals
(
types
.
get
(
0
),
5
)){
return
this
.
baseMapper
.
getTgNumByType
(
date
,
dateString
);
}
if
(
Objects
.
equals
(
types
.
get
(
0
),
8
)){
String
year
=
DateUtil
.
toShortYear
(
new
Date
());
DayNumVo
dayNumVo
=
new
DayNumVo
();
dayNumVo
.
setNum
(
this
.
baseMapper
.
getResearchTotal
(
year
));
dayNumVo
.
setPreNum
(
this
.
baseMapper
.
getResearchJoinTotal
(
year
));
return
dayNumVo
;
}
return
this
.
baseMapper
.
getNumByType
(
date
,
dateString
,
types
);
}
...
...
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
580859d6
...
...
@@ -172,4 +172,30 @@
and create_time >= DATE_SUB(NOW(), INTERVAL 4 MONTH)
group by DATE_FORMAT( create_time, '%m' )
</select>
<select
id=
"getResearchTotal"
resultType=
"java.lang.Integer"
>
select
count(1)
from
cloud_research.research
where
deleted = 0
and state != 0
and DATE_FORMAT(create_time, '%Y') = #{year}
</select>
<select
id=
"getResearchJoinTotal"
resultType=
"java.lang.Integer"
>
select
count(1)
from
cloud_research.tr_research_answer
where
research_id in(
select
id
from
cloud_research.research
where
deleted = 0
and state != 0
and DATE_FORMAT(create_time, '%Y') = #{year})
</select>
</mapper>
\ No newline at end of file
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