Commit deb7710c by zhouhaibao

[+]策略中心新增学习进度

1 parent 2b2dfc74
...@@ -112,10 +112,4 @@ public class StrategyStaffRel implements Serializable { ...@@ -112,10 +112,4 @@ public class StrategyStaffRel implements Serializable {
@ApiModelProperty(notes = "完成时间(任务/课程完成的具体时间)") @ApiModelProperty(notes = "完成时间(任务/课程完成的具体时间)")
private Date completionTime; private Date completionTime;
/**
* 北森员工id
*/
@ApiModelProperty(notes = "北森员工id")
@Column(name = "beisen_userid")
private Integer beisenUserid;
} }
\ No newline at end of file \ No newline at end of file
...@@ -176,14 +176,14 @@ public class StrategyInfoService { ...@@ -176,14 +176,14 @@ public class StrategyInfoService {
List<String> collect = strategyCourseRels.stream() List<String> collect = strategyCourseRels.stream()
.map(StrategyCourseRel::getCourseId).collect(Collectors.toList()); .map(StrategyCourseRel::getCourseId).collect(Collectors.toList());
List<Integer> 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);
for (StrategyCourseRel strategyCourseRel : strategyCourseRels){ for (StrategyCourseRel strategyCourseRel : strategyCourseRels){
// 处理学习进度 // 处理学习进度
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 处理课程完成时间
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!