@@ -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) {
@@ -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 { };