Commit 2b2dfc74 by zhouhaibao

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

1 parent 7dea3ca8
...@@ -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
...@@ -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
...@@ -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);
} }
} }
...@@ -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 处理课程完成时间
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!