|
@@ -2698,6 +2698,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if(Validator.isEmpty(bo.getOrderGoodsId())){
|
|
|
throw new CustomException("缺少OrderGoodsId");
|
|
|
}
|
|
|
+ OrderGoods og = iOrderGoodsService.getOne(new LambdaQueryWrapper<OrderGoods>().eq(OrderGoods::getOrderGoodsId, bo.getOrderGoodsId()));
|
|
|
//查找最外层课程目录 模块 章 节
|
|
|
List<ClassPeriodVo> classPeriodVos = baseMapper.listPeriodAudit(bo);
|
|
|
classPeriodVos.addAll(baseMapper.listPeriodAuditSection(bo));
|
|
@@ -2748,7 +2749,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setStudyStartTime(photoList.get(0).getCreateTime());
|
|
|
}
|
|
|
if ((startTotalTime == 0L && Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime())) || (Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime()) && (startTotalTime.longValue() > classPeriodSectionVo.getStudyStartTime().longValue()))) {
|
|
|
- startTotalTime = classPeriodSectionVo.getStudyStartTime();
|
|
|
+ if(og.getSevenClassCopy()==1||classPeriodChapterVo.getCommonSign()==0){
|
|
|
+ startTotalTime = classPeriodSectionVo.getStudyStartTime();
|
|
|
+ }
|
|
|
}
|
|
|
if ((endTotalTime == 0L && (Validator.isNotEmpty(classPeriodSectionVo.getStudyEndTime()))) || (Validator.isNotEmpty(classPeriodSectionVo.getStudyEndTime()) && endTotalTime.longValue() < classPeriodSectionVo.getStudyEndTime().longValue())) {
|
|
|
endTotalTime = classPeriodSectionVo.getStudyEndTime();
|
|
@@ -2903,7 +2906,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodSectionVo.setStudyStartTime(photoList.get(0).getCreateTime());
|
|
|
}
|
|
|
if ((startTotalTime == 0L && Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime())) || (Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime()) && startTotalTime.longValue() > classPeriodSectionVo.getStudyStartTime().longValue())) {
|
|
|
- startTotalTime = classPeriodSectionVo.getStudyStartTime();
|
|
|
+ if(og.getSevenClassCopy()==1||classPeriodVo.getCommonSign()==0){
|
|
|
+ startTotalTime = classPeriodSectionVo.getStudyStartTime();
|
|
|
+ }
|
|
|
}
|
|
|
if (endTotalTime == 0L || (Validator.isNotEmpty(classPeriodSectionVo.getStudyEndTime()) && endTotalTime.longValue() < classPeriodSectionVo.getStudyEndTime().longValue())) {
|
|
|
endTotalTime = classPeriodSectionVo.getStudyEndTime();
|