Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-strategy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit deb7710c
authored
Jan 23, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]策略中心新增学习进度
1 parent
2b2dfc74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/StrategyStaffRel.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
rpc-dj-strategy-api/src/main/java/cn/com/glsx/dj/strategy/model/StrategyStaffRel.java
View file @
deb7710
...
...
@@ -112,10 +112,4 @@ public class StrategyStaffRel implements Serializable {
@ApiModelProperty
(
notes
=
"完成时间(任务/课程完成的具体时间)"
)
private
Date
completionTime
;
/**
* 北森员工id
*/
@ApiModelProperty
(
notes
=
"北森员工id"
)
@Column
(
name
=
"beisen_userid"
)
private
Integer
beisenUserid
;
}
\ No newline at end of file
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
View file @
deb7710
...
...
@@ -176,14 +176,14 @@ public class StrategyInfoService {
List
<
String
>
collect
=
strategyCourseRels
.
stream
()
.
map
(
StrategyCourseRel:
:
getCourseId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
stringList
=
strategyInfo
.
getStaffList
().
stream
()
.
map
(
StrategyStaffRel:
:
getBeisenUser
i
d
).
collect
(
.
map
(
StrategyStaffRel:
:
getBeisenUser
I
d
).
collect
(
Collectors
.
toList
());
List
<
StrategyCourseLearnProcessDTO
>
learningRecords
=
learningRecordService
.
findCourseProcess
(
collect
,
stringList
);
for
(
StrategyCourseRel
strategyCourseRel
:
strategyCourseRels
){
// 处理学习进度
for
(
StrategyStaffRel
strategyStaffRel
:
strategyInfo
.
getStaffList
())
{
StrategyCourseLearnProcessDTO
learningRecord
=
learningRecords
.
stream
()
.
filter
(
learningRecord1
->
learningRecord1
.
getUserId
().
equals
(
strategyStaffRel
.
getBeisenUser
i
d
()+
""
)
&&
learningRecord1
.
getCourseId
().
equals
(
strategyCourseRel
.
getCourseId
()))
.
filter
(
learningRecord1
->
learningRecord1
.
getUserId
().
equals
(
strategyStaffRel
.
getBeisenUser
I
d
()+
""
)
&&
learningRecord1
.
getCourseId
().
equals
(
strategyCourseRel
.
getCourseId
()))
.
findFirst
().
orElse
(
null
);
if
(
learningRecord
!=
null
){
// TODO 处理课程完成时间
...
...
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