|
@@ -164,6 +164,10 @@ public class BillBuyInfoServiceImpl extends ServiceImpl<BillBuyInfoMapper, BillB
|
|
|
BaseAnimal baseAnimal = baseAnimalMapper.selectOne(new QueryWrapper<BaseAnimal>().eq("earatg_no", number).eq("inspection_num",inspectionNum));
|
|
|
if (ObjectUtil.isEmpty(baseAnimal)){
|
|
|
return new Result(10001,"耳标号"+number+"不存在",false);
|
|
|
+
|
|
|
+ }
|
|
|
+ if (baseAnimal.getIsDie() == 1){
|
|
|
+ return new Result(10001,"耳标号"+number+"畜种已死亡",false);
|
|
|
}
|
|
|
if (baseAnimal.getIsLoated() == 1){
|
|
|
return new Result(10001,"耳标号"+number+"已申请补贴,无法交易!",false);
|
|
@@ -201,6 +205,9 @@ public class BillBuyInfoServiceImpl extends ServiceImpl<BillBuyInfoMapper, BillB
|
|
|
if (num2 != 0){
|
|
|
return new Result(10001,"耳标号"+input+"重复",false);
|
|
|
}
|
|
|
+ if (baseAnimal.getIsDie() == 1){
|
|
|
+ return new Result(10001,"耳标号"+input+"畜种已死亡",false);
|
|
|
+ }
|
|
|
if (baseAnimal.getIsLoated() == 1){
|
|
|
return new Result(10001,"耳标号"+input+"已申请补贴,无法交易!",false);
|
|
|
}
|
|
@@ -251,6 +258,9 @@ public class BillBuyInfoServiceImpl extends ServiceImpl<BillBuyInfoMapper, BillB
|
|
|
if (ObjectUtil.isEmpty(baseAnimal)){
|
|
|
return new Result(10001,"耳标号"+number+"不存在",false);
|
|
|
}
|
|
|
+ if (baseAnimal.getIsDie() == 1){
|
|
|
+ return new Result(10001,"耳标号"+number+"畜种已死亡",false);
|
|
|
+ }
|
|
|
if (baseAnimal.getIsLoated() == 1){
|
|
|
return new Result(10001,"耳标号"+number+"已申请补贴,无法交易!",false);
|
|
|
}
|
|
@@ -280,6 +290,9 @@ public class BillBuyInfoServiceImpl extends ServiceImpl<BillBuyInfoMapper, BillB
|
|
|
if (ObjectUtil.isEmpty(baseAnimal)){
|
|
|
return new Result(10001,"耳标号"+eartags+"不存在",false);
|
|
|
}
|
|
|
+ if (baseAnimal.getIsDie() == 1){
|
|
|
+ return new Result(10001,"耳标号"+eartags+"畜种已死亡",false);
|
|
|
+ }
|
|
|
if (baseAnimal.getIsLoated() == 1){
|
|
|
return new Result(10001,"耳标号"+eartags+"已申请补贴,无法交易!",false);
|
|
|
}
|