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
8b850a02
Commit
8b850a02
authored
Feb 18, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件上传
parent
9a1b10bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
+18
-1
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
8b850a02
...
...
@@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollectionUtil;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.service.impl.ServiceImpl
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.yizhi.application.orm.id.IdGenerator
;
import
com.yizhi.core.application.context.ContextHolder
;
import
com.yizhi.core.application.context.RequestContext
;
...
...
@@ -196,6 +197,15 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
date
=
"3"
;
}
String
dateString
=
getDateString
(
date
);
String
key
=
"event_track_type"
;
List
<
Dictionary
>
dictionaryList
=
dictionaryFeignClients
.
listChildDictionary
(
key
,
false
,
1
);
Map
<
Integer
,
String
>
keyMap
=
Maps
.
newHashMap
();
if
(
CollUtil
.
isNotEmpty
(
dictionaryList
)){
dictionaryList
.
stream
().
forEach
(
d
->{
keyMap
.
put
(
Integer
.
valueOf
(
d
.
getValue
()),
d
.
getCnName
());
});
}
List
<
EventTrackDeptNumVo
>
eventTrackDeptNumVoList
=
this
.
baseMapper
.
queryGropByList
();
if
(
CollUtil
.
isNotEmpty
(
eventTrackDeptNumVoList
)){
...
...
@@ -217,7 +227,9 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
}
}
else
{
if
(
numVo
.
getType
()==
13
){
numVo
.
setSubType
(
"评论总书"
);
numVo
.
setSubType
(
"评论总数"
);
}
else
{
numVo
.
setSubType
(
keyMap
.
get
(
numVo
.
getType
()));
}
voList
.
add
(
numVo
);
}
...
...
@@ -231,6 +243,11 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
EventTrackTypeNumVo
vo
=
new
EventTrackTypeNumVo
();
vo
.
setType
(
t
);
vo
.
setNum
(
0
);
if
(
vo
.
getType
()==
13
){
vo
.
setSubType
(
"评论总数"
);
}
else
{
vo
.
setSubType
(
keyMap
.
get
(
vo
.
getType
()));
}
if
(
CollectionUtil
.
isNotEmpty
(
eventTrackDeptNumVo
.
getEventTrackTypeNumVoList
()))
{
Optional
<
EventTrackTypeNumVo
>
optional
=
eventTrackDeptNumVo
.
getEventTrackTypeNumVoList
().
stream
().
filter
(
v
->
Objects
.
equals
(
v
.
getType
(),
t
)).
findFirst
();
if
(!(
optional
!=
null
&&
optional
.
isPresent
())){
...
...
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