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 2b2dfc74
authored
Jan 23, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]策略中心新增学习进度
1 parent
7dea3ca8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 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/mapper/LearningRecordMapper.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/LearningRecordService.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 @
2b2dfc7
...
@@ -117,5 +117,5 @@ public class StrategyStaffRel implements Serializable {
...
@@ -117,5 +117,5 @@ public class StrategyStaffRel implements Serializable {
*/
*/
@ApiModelProperty
(
notes
=
"北森员工id"
)
@ApiModelProperty
(
notes
=
"北森员工id"
)
@Column
(
name
=
"beisen_userid"
)
@Column
(
name
=
"beisen_userid"
)
private
String
beisenUserid
;
private
Integer
beisenUserid
;
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mapper/LearningRecordMapper.java
View file @
2b2dfc7
...
@@ -14,5 +14,5 @@ public interface LearningRecordMapper extends OreMapper<LearningRecord> {
...
@@ -14,5 +14,5 @@ public interface LearningRecordMapper extends OreMapper<LearningRecord> {
List
<
LearningRecord
>
queryLearningRecordList
(
@Param
(
"recordingIds"
)
List
<
Integer
>
recordingIds
,
@Param
(
"userUuids"
)
List
<
String
>
userUuids
);
List
<
LearningRecord
>
queryLearningRecordList
(
@Param
(
"recordingIds"
)
List
<
Integer
>
recordingIds
,
@Param
(
"userUuids"
)
List
<
String
>
userUuids
);
List
<
StrategyCourseLearnProcessDTO
>
findCourseProcess
(
@Param
(
"courseList"
)
List
<
String
>
courseList
,
@Param
(
"beisenUserList"
)
List
<
String
>
beisenUserList
);
List
<
StrategyCourseLearnProcessDTO
>
findCourseProcess
(
@Param
(
"courseList"
)
List
<
String
>
courseList
,
@Param
(
"beisenUserList"
)
List
<
Integer
>
beisenUserList
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/LearningRecordService.java
View file @
2b2dfc7
...
@@ -58,7 +58,7 @@ public class LearningRecordService {
...
@@ -58,7 +58,7 @@ public class LearningRecordService {
return
learningRecordMapper
.
queryLearningRecordList
(
recordingIds
,
userUuids
);
return
learningRecordMapper
.
queryLearningRecordList
(
recordingIds
,
userUuids
);
}
}
public
List
<
StrategyCourseLearnProcessDTO
>
findCourseProcess
(
List
<
String
>
courseList
,
List
<
String
>
beisenUserList
)
{
public
List
<
StrategyCourseLearnProcessDTO
>
findCourseProcess
(
List
<
String
>
courseList
,
List
<
Integer
>
beisenUserList
)
{
return
learningRecordMapper
.
findCourseProcess
(
courseList
,
beisenUserList
);
return
learningRecordMapper
.
findCourseProcess
(
courseList
,
beisenUserList
);
}
}
}
}
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
View file @
2b2dfc7
...
@@ -175,7 +175,7 @@ public class StrategyInfoService {
...
@@ -175,7 +175,7 @@ public class StrategyInfoService {
strategyId
);
strategyId
);
List
<
String
>
collect
=
strategyCourseRels
.
stream
()
List
<
String
>
collect
=
strategyCourseRels
.
stream
()
.
map
(
StrategyCourseRel:
:
getCourseId
).
collect
(
Collectors
.
toList
());
.
map
(
StrategyCourseRel:
:
getCourseId
).
collect
(
Collectors
.
toList
());
List
<
String
>
stringList
=
strategyInfo
.
getStaffList
().
stream
()
List
<
Integer
>
stringList
=
strategyInfo
.
getStaffList
().
stream
()
.
map
(
StrategyStaffRel:
:
getBeisenUserid
).
collect
(
.
map
(
StrategyStaffRel:
:
getBeisenUserid
).
collect
(
Collectors
.
toList
());
Collectors
.
toList
());
List
<
StrategyCourseLearnProcessDTO
>
learningRecords
=
learningRecordService
.
findCourseProcess
(
collect
,
stringList
);
List
<
StrategyCourseLearnProcessDTO
>
learningRecords
=
learningRecordService
.
findCourseProcess
(
collect
,
stringList
);
...
@@ -183,7 +183,7 @@ public class StrategyInfoService {
...
@@ -183,7 +183,7 @@ public class StrategyInfoService {
// 处理学习进度
// 处理学习进度
for
(
StrategyStaffRel
strategyStaffRel
:
strategyInfo
.
getStaffList
())
{
for
(
StrategyStaffRel
strategyStaffRel
:
strategyInfo
.
getStaffList
())
{
StrategyCourseLearnProcessDTO
learningRecord
=
learningRecords
.
stream
()
StrategyCourseLearnProcessDTO
learningRecord
=
learningRecords
.
stream
()
.
filter
(
learningRecord1
->
learningRecord1
.
getUserId
().
equals
(
strategyStaffRel
.
getBeisenUserid
())
&&
learningRecord1
.
getCourseId
().
equals
(
strategyCourseRel
.
getCourseId
()))
.
filter
(
learningRecord1
->
learningRecord1
.
getUserId
().
equals
(
strategyStaffRel
.
getBeisenUserid
()
+
""
)
&&
learningRecord1
.
getCourseId
().
equals
(
strategyCourseRel
.
getCourseId
()))
.
findFirst
().
orElse
(
null
);
.
findFirst
().
orElse
(
null
);
if
(
learningRecord
!=
null
){
if
(
learningRecord
!=
null
){
// TODO 处理课程完成时间
// 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