he2802 2 年 前
コミット
d0bbf6f8ff

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeUserServiceImpl.java

@@ -1723,7 +1723,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
                                     if(Validator.isNotEmpty(classPeriodSectionVo.getStudyEndTime())&&ChapterEndTime.longValue()<classPeriodSectionVo.getStudyEndTime().longValue()){
                                         ChapterEndTime = classPeriodSectionVo.getStudyEndTime();
                                     }
-                                    if((ChapterStartTime==0L&&Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime()))||((ChapterStartTime.longValue()>classPeriodSectionVo.getStudyStartTime().longValue())&&Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime()))){
+                                    if((ChapterStartTime==0L&&Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime()))||((Validator.isNotEmpty(classPeriodSectionVo.getStudyStartTime())&&ChapterStartTime.longValue()>classPeriodSectionVo.getStudyStartTime().longValue()))){
                                         ChapterStartTime = classPeriodSectionVo.getStudyStartTime();
                                     }
                                 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserStudyRecordServiceImpl.java

@@ -358,10 +358,12 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
                                 if(photoList.size()>0){
                                     UserStudyRecordPhoto photo = photoList.get(0);
                                     if((DateUtils.getNowTime().longValue()-photo.getCreateTime().longValue())<(videoTime.longValue()-20)){
+                                        log.info("视频学习时长不达标",JSON.toJSONString(bo));
                                         throw new CustomException("视频学习时长不达标",558);
                                     }
                                 }
                                 if(photoList.size()<num){
+                                    log.info("拍照次数不达标",JSON.toJSONString(bo));
                                     throw new CustomException("拍照次数不达标",559);
                                 }
                             }