|
|
@ -45,7 +45,7 @@ public class CourseLearningRecordServiceImpl extends ServiceImpl<CourseLearningR |
|
|
|
String courseId = courseLearningRecord.getCourseId(); |
|
|
|
String courseId = courseLearningRecord.getCourseId(); |
|
|
|
String userId = courseLearningRecord.getUserId(); |
|
|
|
String userId = courseLearningRecord.getUserId(); |
|
|
|
//1.生成学习时间
|
|
|
|
//1.生成学习时间
|
|
|
|
courseLearningRecord.setTime(LocalDateTime.now()); |
|
|
|
courseLearningRecord.setTimes(LocalDateTime.now()); |
|
|
|
//2.设置人数
|
|
|
|
//2.设置人数
|
|
|
|
//2.1查人数
|
|
|
|
//2.1查人数
|
|
|
|
Long count = courseLearningNumberService.query() |
|
|
|
Long count = courseLearningNumberService.query() |
|
|
@ -90,7 +90,7 @@ public class CourseLearningRecordServiceImpl extends ServiceImpl<CourseLearningR |
|
|
|
records.forEach(courseLearningRecord -> { |
|
|
|
records.forEach(courseLearningRecord -> { |
|
|
|
CourseLearningRecordsVo courseLearningRecordsVo = new CourseLearningRecordsVo(); |
|
|
|
CourseLearningRecordsVo courseLearningRecordsVo = new CourseLearningRecordsVo(); |
|
|
|
BeanUtil.copyProperties(courseLearningRecord,courseLearningRecordsVo); |
|
|
|
BeanUtil.copyProperties(courseLearningRecord,courseLearningRecordsVo); |
|
|
|
Date date = Date.from(courseLearningRecord.getTime().atZone(ZoneId.systemDefault()).toInstant()); |
|
|
|
Date date = Date.from(courseLearningRecord.getTimes().atZone(ZoneId.systemDefault()).toInstant()); |
|
|
|
courseLearningRecordsVo.setTime(sdf.format(date)); |
|
|
|
courseLearningRecordsVo.setTime(sdf.format(date)); |
|
|
|
//填充课程名称
|
|
|
|
//填充课程名称
|
|
|
|
courseLearningRecordsVo.setCourseName(coursesService.getById(courseLearningRecord.getCourseId()).getName()); |
|
|
|
courseLearningRecordsVo.setCourseName(coursesService.getById(courseLearningRecord.getCourseId()).getName()); |
|
|
|