|
@@ -1645,6 +1645,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodChapterVos.addAll(baseMapper.listperiodModuleExam( bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId(), classPeriodVo.getId()));
|
|
|
for (ClassPeriodChapterVo classPeriodChapterVo : classPeriodChapterVos) {
|
|
|
if (classPeriodChapterVo.getType() == 2) {
|
|
|
+ Long ChapterEndTime = 0L;
|
|
|
List<ClassPeriodSectionVo> classPeriodSectionVos = baseMapper.listPeriodSection(classPeriodChapterVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId());
|
|
|
Collections.sort(classPeriodSectionVos);
|
|
|
classPeriodSectionVos.addAll(baseMapper.listperiodExam(classPeriodChapterVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId(), classPeriodVo.getId()));
|
|
@@ -1665,11 +1666,13 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
UserPeriodStatusVo userPeriodStatusVo = userPeriodStatusVos.get(numIndex);
|
|
|
LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatusVo.getId());
|
|
|
- classPeriodSectionVo.setUserStudyRecordPhotoList(entity2PhotoVo(userStudyRecordPhotoService.list(lqw)));
|
|
|
+ List<UserStudyRecordPhotoVo> photoList = entity2PhotoVo(userStudyRecordPhotoService.list(lqw));
|
|
|
+ classPeriodSectionVo.setUserStudyRecordPhotoList(photoList);
|
|
|
classPeriodSectionVo.setNumIndex(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
classPeriodSectionVo.setStatus(userPeriodStatusVo.getStatus());
|
|
|
classPeriodSectionVo.setNumList(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
- classPeriodSectionVo.setStudyEndTime(userPeriodStatusVo.getRecordEndTime());
|
|
|
+ // classPeriodSectionVo.setStudyEndTime(userPeriodStatusVo.getRecordEndTime());
|
|
|
+ classPeriodSectionVo.setStudyEndTime(photoList.get(photoList.size()-1).getCreateTime());
|
|
|
classPeriodSectionVo.setStudyStartTime(userPeriodStatusVo.getRecordStartTime());
|
|
|
classPeriodSectionVo.setPeriodStatus(userPeriodStatusVo.getPeriodStatus());
|
|
|
classPeriodSectionVo.setPeriodId(userPeriodStatusVo.getPeriodId());
|
|
@@ -1677,6 +1680,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setAuditTime(userPeriodStatusVo.getAuditTime());
|
|
|
classPeriodSectionVo.setAuditUserName(userPeriodStatusVo.getAuditUserName());
|
|
|
classPeriodSectionVo.setDurationTime(userPeriodStatusVo.getDurationTime());
|
|
|
+ if(ChapterEndTime.longValue()<classPeriodSectionVo.getStudyEndTime().longValue()){
|
|
|
+ ChapterEndTime = classPeriodSectionVo.getStudyEndTime();
|
|
|
+ }
|
|
|
}
|
|
|
if(userPeriodStatusVos.size()>1){
|
|
|
// int preIndex = userPeriodStatusVos.size() - 2;
|
|
@@ -1716,6 +1722,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setAuditUserName(userPeriodStatusVo.getAuditUserName());
|
|
|
classPeriodSectionVo.setPeriodStatusId(userPeriodStatusVo.getId());
|
|
|
classPeriodSectionVo.setPerformance(Convert.toBigDecimal(userPeriodStatusVo.getPerformance()));
|
|
|
+ if(ChapterEndTime.longValue()<classPeriodSectionVo.getStudyEndTime().longValue()){
|
|
|
+ ChapterEndTime = classPeriodSectionVo.getStudyEndTime();
|
|
|
+ }
|
|
|
}
|
|
|
classPeriodSectionVo.setModuleId(classPeriodVo.getId());
|
|
|
classPeriodSectionVo.setChapterId(classPeriodChapterVo.getId());
|
|
@@ -1723,7 +1732,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setGradeId(bo.getGradeId());
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ classPeriodChapterVo.setStudyEndTime(ChapterEndTime);
|
|
|
classPeriodChapterVo.setClassPeriodSectionList(classPeriodSectionVos);
|
|
|
}
|
|
|
else if (classPeriodChapterVo.getType() == 5) {
|
|
@@ -1761,6 +1770,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
}
|
|
|
//为章搜索节记录和学时记录
|
|
|
if (classPeriodVo.getType() == 2) {
|
|
|
+ Long ChapterEndTime = 0L;
|
|
|
List<ClassPeriodSectionVo> classPeriodSectionVos = baseMapper.listPeriodSection(classPeriodVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId());
|
|
|
Collections.sort(classPeriodSectionVos);
|
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
@@ -1778,11 +1788,13 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
UserPeriodStatusVo userPeriodStatusVo = userPeriodStatusVos.get(numIndex);
|
|
|
LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatusVo.getId());
|
|
|
- classPeriodSectionVo.setUserStudyRecordPhotoList(entity2PhotoVo(userStudyRecordPhotoService.list(lqw)));
|
|
|
+ List<UserStudyRecordPhotoVo> photoList = entity2PhotoVo(userStudyRecordPhotoService.list(lqw));
|
|
|
+ classPeriodSectionVo.setUserStudyRecordPhotoList(photoList);
|
|
|
classPeriodSectionVo.setNumIndex(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
classPeriodSectionVo.setStatus(userPeriodStatusVo.getStatus());
|
|
|
classPeriodSectionVo.setNumList(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
- classPeriodSectionVo.setStudyEndTime(userPeriodStatusVo.getRecordEndTime());
|
|
|
+ // classPeriodSectionVo.setStudyEndTime(userPeriodStatusVo.getRecordEndTime());
|
|
|
+ classPeriodSectionVo.setStudyEndTime(photoList.get(photoList.size()-1).getCreateTime());
|
|
|
classPeriodSectionVo.setStudyStartTime(userPeriodStatusVo.getRecordStartTime());
|
|
|
classPeriodSectionVo.setPeriodStatus(userPeriodStatusVo.getPeriodStatus());
|
|
|
classPeriodSectionVo.setPeriodId(userPeriodStatusVo.getPeriodId());
|
|
@@ -1790,6 +1802,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setAuditTime(userPeriodStatusVo.getAuditTime());
|
|
|
classPeriodSectionVo.setAuditUserName(userPeriodStatusVo.getAuditUserName());
|
|
|
classPeriodSectionVo.setDurationTime(userPeriodStatusVo.getDurationTime());
|
|
|
+ if(ChapterEndTime.longValue()<classPeriodSectionVo.getStudyEndTime().longValue()){
|
|
|
+ ChapterEndTime = classPeriodSectionVo.getStudyEndTime();
|
|
|
+ }
|
|
|
}
|
|
|
if(userPeriodStatusVos.size()>1){
|
|
|
// int preIndex = userPeriodStatusVos.size() - 2;
|
|
@@ -1831,6 +1846,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setAuditUserName(userPeriodStatusVo.getAuditUserName());
|
|
|
classPeriodSectionVo.setPerformance(Convert.toBigDecimal(userPeriodStatusVo.getPerformance()));
|
|
|
classPeriodVo.setPerformance(Convert.toBigDecimal(userPeriodStatusVo.getPerformance()));
|
|
|
+ if(ChapterEndTime.longValue()<classPeriodSectionVo.getStudyEndTime().longValue()){
|
|
|
+ ChapterEndTime = classPeriodSectionVo.getStudyEndTime();
|
|
|
+ }
|
|
|
}
|
|
|
classPeriodSectionVo.setModuleId(0L);
|
|
|
classPeriodSectionVo.setChapterId(classPeriodVo.getId());
|
|
@@ -1839,6 +1857,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
}
|
|
|
classPeriodSectionVos.addAll(classPeriodSectionVos1);
|
|
|
classPeriodVo.setClassPeriodSectionList(classPeriodSectionVos);
|
|
|
+ classPeriodVo.setStudyEndTime(ChapterEndTime);
|
|
|
}
|
|
|
|
|
|
//为节搜索学时记录
|
|
@@ -1857,11 +1876,14 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
UserPeriodStatusVo userPeriodStatusVo = userPeriodStatusVos.get(numIndex);
|
|
|
LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatusVo.getId());
|
|
|
- classPeriodVo.setUserStudyRecordPhotoList(entity2PhotoVo(userStudyRecordPhotoService.list(lqw)));
|
|
|
+
|
|
|
+ List<UserStudyRecordPhotoVo> photoList = entity2PhotoVo(userStudyRecordPhotoService.list(lqw));
|
|
|
+ classPeriodVo.setUserStudyRecordPhotoList(photoList);
|
|
|
classPeriodVo.setNumIndex(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
classPeriodVo.setStatus(userPeriodStatusVo.getStatus());
|
|
|
classPeriodVo.setNumList(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
- classPeriodVo.setStudyEndTime(userPeriodStatusVo.getRecordEndTime());
|
|
|
+ // classPeriodVo.setStudyEndTime(userPeriodStatusVo.getRecordEndTime());
|
|
|
+ classPeriodVo.setStudyEndTime(photoList.get(photoList.size()-1).getCreateTime());
|
|
|
classPeriodVo.setStudyStartTime(userPeriodStatusVo.getRecordStartTime());
|
|
|
classPeriodVo.setPeriodStatus(userPeriodStatusVo.getPeriodStatus());
|
|
|
classPeriodVo.setPeriodId(userPeriodStatusVo.getPeriodId());
|