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
241052de
Commit
241052de
authored
May 31, 2025
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改BUG
parent
3d97869b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletions
+10
-1
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
+2
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
+2
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/InformationServiceImpl.java
+1
-1
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+5
-0
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/EventTrackMapper.java
View file @
241052de
...
@@ -45,4 +45,6 @@ public interface EventTrackMapper extends BaseMapper<EventTrack> {
...
@@ -45,4 +45,6 @@ public interface EventTrackMapper extends BaseMapper<EventTrack> {
Integer
getResearchTotal
(
@Param
(
"year"
)
String
year
,
@Param
(
"siteId"
)
Long
siteId
);
Integer
getResearchTotal
(
@Param
(
"year"
)
String
year
,
@Param
(
"siteId"
)
Long
siteId
);
Integer
getResearchJoinTotal
(
@Param
(
"year"
)
String
year
,
@Param
(
"siteId"
)
Long
siteId
);
Integer
getResearchJoinTotal
(
@Param
(
"year"
)
String
year
,
@Param
(
"siteId"
)
Long
siteId
);
Integer
getCommentNum
(
@Param
(
"businessId"
)
Long
businessId
,
@Param
(
"siteId"
)
Long
siteId
);
}
}
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
241052de
...
@@ -136,6 +136,8 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
...
@@ -136,6 +136,8 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
RequestContext
context
=
ContextHolder
.
get
();
RequestContext
context
=
ContextHolder
.
get
();
if
(
typeStr
.
indexOf
(
"event_favorite_"
)>=
0
){
if
(
typeStr
.
indexOf
(
"event_favorite_"
)>=
0
){
return
this
.
baseMapper
.
getFavoriteNum
(
businessId
,
context
.
getSiteId
());
return
this
.
baseMapper
.
getFavoriteNum
(
businessId
,
context
.
getSiteId
());
}
else
if
(
typeStr
.
indexOf
(
"event_comment_"
)>=
0
){
return
this
.
baseMapper
.
getCommentNum
(
businessId
,
context
.
getSiteId
());
}
}
List
<
Dictionary
>
dictionaryList
=
dictionaryFeignClients
.
listChildDictionary
(
key
,
false
,
1
);
List
<
Dictionary
>
dictionaryList
=
dictionaryFeignClients
.
listChildDictionary
(
key
,
false
,
1
);
if
(
CollUtil
.
isNotEmpty
(
dictionaryList
)){
if
(
CollUtil
.
isNotEmpty
(
dictionaryList
)){
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/InformationServiceImpl.java
View file @
241052de
...
@@ -1049,7 +1049,7 @@ public class InformationServiceImpl extends ServiceImpl<InformationMapper, Infor
...
@@ -1049,7 +1049,7 @@ public class InformationServiceImpl extends ServiceImpl<InformationMapper, Infor
info
.
setTypeThreeName
(
findNameById
(
info
.
getTypeThree
()));
info
.
setTypeThreeName
(
findNameById
(
info
.
getTypeThree
()));
}
}
info
.
setAdmireNum
(
eventTrackService
.
getNum
(
"event_admire_"
+
info
.
getTypeOne
(),
info
.
getId
()));
info
.
setAdmireNum
(
eventTrackService
.
getNum
(
"event_admire_"
+
info
.
getTypeOne
(),
info
.
getId
()));
info
.
setFavoriteNum
(
eventTrackService
.
getNum
(
"event_
favorite
_"
+
info
.
getTypeOne
(),
info
.
getId
()));
info
.
setFavoriteNum
(
eventTrackService
.
getNum
(
"event_
comment
_"
+
info
.
getTypeOne
(),
info
.
getId
()));
info
.
setRelayNum
(
eventTrackService
.
getNum
(
"event_relay_"
+
info
.
getTypeOne
(),
info
.
getId
()));
info
.
setRelayNum
(
eventTrackService
.
getNum
(
"event_relay_"
+
info
.
getTypeOne
(),
info
.
getId
()));
info
.
setReadNum
(
informationReadNumberService
.
getInformationReadCount
(
info
.
getId
()));
info
.
setReadNum
(
informationReadNumberService
.
getInformationReadCount
(
info
.
getId
()));
}
}
...
...
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
241052de
...
@@ -172,6 +172,11 @@
...
@@ -172,6 +172,11 @@
SELECT count(1) FROM cloud_case_library.favorite
SELECT count(1) FROM cloud_case_library.favorite
WHERE biz_id = #{businessId} and site_id = #{siteId} and state = 1
WHERE biz_id = #{businessId} and site_id = #{siteId} and state = 1
</select>
</select>
<select
id=
"getCommentNum"
resultType=
"java.lang.Integer"
>
SELECT count(1)
FROM cloud_trainning_project.tp_comment
WHERE training_project_id = #{businessId} and site_id = #{siteId} AND audit_status=0
</select>
<select
id=
"getExamTotal"
resultType=
"java.lang.Integer"
>
<select
id=
"getExamTotal"
resultType=
"java.lang.Integer"
>
SELECT COUNT(DISTINCT create_by_id) FROM cloud_portal.event_track
SELECT COUNT(DISTINCT create_by_id) FROM cloud_portal.event_track
WHERE sub_type =#{subType} and DATE_FORMAT(create_time,'%Y') = #{year}
WHERE sub_type =#{subType} and DATE_FORMAT(create_time,'%Y') = #{year}
...
...
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