he2802 2 years ago
parent
commit
d7c99d806e

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

@@ -336,9 +336,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
                                 UserPeriodStatusVo userPeriodStatusVo = userPeriodStatusVos.get(numIndex);
                                 LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
                                 lqw.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatusVo.getId());
-                                List<UserStudyRecordPhoto> examPhoto = userStudyRecordPhotoService.list(lqw);
-                                if(examPhoto.size()<num){
-                                    throw new CustomException("拍照次数不达标");
+                                List<UserStudyRecordPhoto> photoList = userStudyRecordPhotoService.list(lqw);
+                                if(photoList.size()<num){
+                                    throw new CustomException("拍照次数不达标",559);
                                 }
                             }
                         }