Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fec5a02d
authored
Jan 27, 2026
by
春觉晓
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改长课程消息统计
1 parent
78e67413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/script/PadMessageBoxService.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/script/PadMessageBoxService.java
View file @
fec5a02
...
@@ -455,18 +455,24 @@ public class PadMessageBoxService {
...
@@ -455,18 +455,24 @@ public class PadMessageBoxService {
if
(
CollectionUtils
.
isNotEmpty
(
countList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
countList
))
{
Map
<
Integer
,
PadMessageSummaryDetail
>
moduleTypeMap
=
countList
.
stream
().
collect
(
Collectors
.
toMap
(
PadMessageSummaryDetail:
:
getModuleType
,
x
->
x
));
Map
<
Integer
,
PadMessageSummaryDetail
>
moduleTypeMap
=
countList
.
stream
().
collect
(
Collectors
.
toMap
(
PadMessageSummaryDetail:
:
getModuleType
,
x
->
x
));
if
(
moduleTypeMap
.
containsKey
(
ModuleTypeEnums
.
LEARNING_POLICY
.
getCode
()))
{
//将学习类课程 合并到 长课程 类型
PadMessageSummaryDetail
learningPolicy
=
moduleTypeMap
.
get
(
ModuleTypeEnums
.
LEARNING_POLICY
.
getCode
());
PadMessageSummaryDetail
studyTask
=
moduleTypeMap
.
get
(
ModuleTypeEnums
.
STUDY_TASK
.
getCode
());
if
(
ObjUtil
.
isAllNotEmpty
(
learningPolicy
,
studyTask
))
{
studyTask
.
setCount
(
studyTask
.
getCount
()
+
learningPolicy
.
getCount
());
}
}
list
.
forEach
(
x
->
{
list
.
forEach
(
x
->
{
if
(
moduleTypeMap
.
containsKey
(
x
.
getModuleType
()))
{
if
(
x
.
getModuleType
().
equals
(
ModuleTypeEnums
.
STUDY_TASK
.
getCode
()))
{
PadMessageSummaryDetail
countInfo
=
moduleTypeMap
.
get
(
x
.
getModuleType
());
//将学习类课程 合并到 长课程 类型
x
.
setCount
(
countInfo
.
getCount
());
PadMessageSummaryDetail
learningPolicy
=
moduleTypeMap
.
get
(
ModuleTypeEnums
.
LEARNING_POLICY
.
getCode
());
int
count
=
0
;
if
(
learningPolicy
!=
null
)
{
count
+=
learningPolicy
.
getCount
();
}
PadMessageSummaryDetail
studyTask
=
moduleTypeMap
.
get
(
ModuleTypeEnums
.
STUDY_TASK
.
getCode
());
if
(
studyTask
!=
null
)
{
count
+=
studyTask
.
getCount
();
}
x
.
setCount
(
count
);
}
else
{
if
(
moduleTypeMap
.
containsKey
(
x
.
getModuleType
()))
{
PadMessageSummaryDetail
countInfo
=
moduleTypeMap
.
get
(
x
.
getModuleType
());
x
.
setCount
(
countInfo
.
getCount
());
}
}
}
});
});
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment