فهرست منبع

自定义校验接口测试

yinhao 4 سال پیش
والد
کامیت
7165d5f3a7

+ 1 - 3
huimv-smart-apiservice/src/main/java/com/huimv/apiservice/service/impl/PigServiceImpl.java

@@ -298,9 +298,7 @@ public class PigServiceImpl extends ServiceImpl<PigDao, YearPigBaseEntity> imple
      */
     private void checkPigEarTagNo(String pigEarTagNo) {
 
-//        if (StringUtils.isEmpty(pigEarTagNo)) {
-//            throw new RRException("耳标号不能为空!", 1001);
-//        }
+//
 
         Integer count = baseMapper.selectCount(Wrappers.<YearPigBaseEntity>lambdaQuery().eq(YearPigBaseEntity::getEartag, pigEarTagNo));
         if (count <= 0) {

+ 1 - 1
huimv-smart-common/src/main/java/com/huimv/common/validate/ListValue.java

@@ -21,7 +21,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
 @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE })
 @Retention(RUNTIME)
 public @interface ListValue {
-    String message() default "出栏状态必须是1(正常出栏) or 2(弃养出栏) or 3(死亡出栏)";
+    String message() default "出栏状态必须是1(正常出栏)或2(弃养出栏)或3(死亡出栏)";
 
     Class<?>[] groups() default { };