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
4b4f0357
Commit
4b4f0357
authored
Sep 08, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台互动分析优化
parent
b5305922
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
+25
-24
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/EventTrackServiceImpl.java
View file @
4b4f0357
...
...
@@ -595,28 +595,29 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
if
(
CollUtil
.
isNotEmpty
(
eventTrackDeptNumVoList
)){
eventTrackDeptNumVoList
.
stream
().
forEach
(
eventTrackDeptNumVo
->
{
List
<
EventTrackTypeNumVo
>
eventTrackTypeNumVoList
=
this
.
baseMapper
.
queryTgNumByDept
(
eventTrackDeptNumVo
.
getDeptName
(),
typeId
,
context
.
getSiteId
());
if
(
CollectionUtil
.
isNotEmpty
(
eventTrackTypeNumVoList
)){
List
<
EventTrackTypeNumVo
>
voList
=
Lists
.
newArrayList
();
eventTrackTypeNumVoList
.
stream
().
forEach
(
numVo
->{
Optional
<
EventTrackTypeNumVo
>
optional
=
CollectionUtil
.
isEmpty
(
voList
)?
null
:
voList
.
stream
().
filter
(
v
->
Objects
.
equals
(
v
.
getType
(),
numVo
.
getType
())).
findFirst
();
if
(
optional
!=
null
&&
optional
.
isPresent
()){
EventTrackTypeNumVo
vo
=
optional
.
get
();
if
(
numVo
.
getNum
()!=
null
)
{
if
(
vo
.
getNum
()!=
null
)
{
vo
.
setNum
(
numVo
.
getNum
()+
vo
.
getNum
());
}
else
{
vo
.
setNum
(
numVo
.
getNum
());
}
}
}
else
{
voList
.
add
(
numVo
);
}
});
eventTrackDeptNumVo
.
setEventTrackTypeNumVoList
(
voList
);
}
else
{
eventTrackDeptNumVo
.
setEventTrackTypeNumVoList
(
eventTrackTypeNumVoList
);
}
eventTrackTypeNumVoList
=
Lists
.
newArrayList
();
// if(CollectionUtil.isNotEmpty(eventTrackTypeNumVoList)){
// List<EventTrackTypeNumVo> voList = Lists.newArrayList();
// eventTrackTypeNumVoList.stream().forEach(numVo->{
// Optional<EventTrackTypeNumVo> optional= CollectionUtil.isEmpty(voList)?null:voList.stream().filter(v->Objects.equals(v.getType(),numVo.getType())).findFirst();
// if(optional!=null&&optional.isPresent()){
// EventTrackTypeNumVo vo = optional.get();
// if(numVo.getNum()!=null) {
// if(vo.getNum()!=null) {
// vo.setNum(numVo.getNum()+vo.getNum());
// }else{
// vo.setNum(numVo.getNum());
// }
// }
// }else{
// voList.add(numVo);
// }
// });
// eventTrackDeptNumVo.setEventTrackTypeNumVoList(voList);
// }else {
// eventTrackDeptNumVo.setEventTrackTypeNumVoList(eventTrackTypeNumVoList);
// }
eventTrackDeptNumVo
.
setEventTrackTypeNumVoList
(
eventTrackTypeNumVoList
);
List
<
EventTrackTypeNumVo
>
newEventTrackTypeNumVoList
=
Lists
.
newArrayList
();
for
(
Integer
month:
recentMonths
){
EventTrackTypeNumVo
eventTrackTypeNumVo
=
new
EventTrackTypeNumVo
();
if
(
CollectionUtil
.
isEmpty
(
eventTrackDeptNumVo
.
getEventTrackTypeNumVoList
())){
...
...
@@ -632,9 +633,9 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
eventTrackTypeNumVo
.
setSubType
(
String
.
valueOf
(
month
));
}
}
e
ventTrackTypeNumVoList
.
add
(
eventTrackTypeNumVo
);
newE
ventTrackTypeNumVoList
.
add
(
eventTrackTypeNumVo
);
}
eventTrackDeptNumVo
.
setEventTrackTypeNumVoList
(
e
ventTrackTypeNumVoList
);
eventTrackDeptNumVo
.
setEventTrackTypeNumVoList
(
newE
ventTrackTypeNumVoList
);
});
}
...
...
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