|
|
@@ -343,8 +343,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(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);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|