he2802 1 year ago
parent
commit
2a2fc50ea3

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

@@ -1779,6 +1779,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
             if(Validator.isEmpty(bo.getSimilarity())){
                 throw new CustomException("相似度缺失");
             }
+            if(bo.getSimilarity()<80){
+                throw new CustomException("相似度不达标");
+            }
             UserStudyRecordPhotoAddBo userStudyRecordPhotoAddBo = new UserStudyRecordPhotoAddBo();
             userStudyRecordPhotoAddBo.setPhoto(bo.getPhoto());
             userStudyRecordPhotoAddBo.setRecordId(entity.getRecordId());