|
@@ -327,7 +327,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
}else{
|
|
|
videoTime = bo.getVideoCurrentTime();
|
|
|
}
|
|
|
- Integer num = (int)Math.floor(videoTime.intValue()/(15*60))+1;
|
|
|
+ Integer num = (int)Math.floor(videoTime.intValue()/(15*60))+2;
|
|
|
UserPeriodQueryBo userPeriodQueryBo2 = new UserPeriodQueryBo();
|
|
|
userPeriodQueryBo2.setSectionId(bo.getSectionId());
|
|
|
userPeriodQueryBo2.setCourseId(bo.getCourseId());
|
|
@@ -343,15 +343,8 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatusVo.getId());
|
|
|
List<UserStudyRecordPhoto> photoList = userStudyRecordPhotoService.list(lqw);
|
|
|
- if(Validator.isNotEmpty(bo.getPhotoNum())&&bo.getPhotoNum()>0){
|
|
|
- if( photoList.size()<bo.getPhotoNum()){
|
|
|
- throw new CustomException("拍照次数不达标",559);
|
|
|
- }
|
|
|
- }
|
|
|
- else{
|
|
|
- if(photoList.size()<num){
|
|
|
- throw new CustomException("拍照次数不达标",559);
|
|
|
- }
|
|
|
+ if(photoList.size()<num){
|
|
|
+ throw new CustomException("拍照次数不达标",559);
|
|
|
}
|
|
|
}
|
|
|
}
|