|
@@ -355,15 +355,15 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatusVo.getId());
|
|
|
List<UserStudyRecordPhoto> photoList = userStudyRecordPhotoService.list(lqw);
|
|
|
- if(photoList.size()<num){
|
|
|
- throw new CustomException("拍照次数不达标",559);
|
|
|
- }
|
|
|
if(photoList.size()>0){
|
|
|
UserStudyRecordPhoto photo = photoList.get(0);
|
|
|
if((DateUtils.getNowTime().longValue()-photo.getCreateTime().longValue())<(videoTime.longValue()-20)){
|
|
|
throw new CustomException("视频学习时长不达标",558);
|
|
|
}
|
|
|
}
|
|
|
+ if(photoList.size()<num){
|
|
|
+ throw new CustomException("拍照次数不达标",559);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|