|
@@ -171,9 +171,9 @@ public class BillLandingInspectionServiceImpl extends ServiceImpl<BillLandingIns
|
|
|
if (!IntegerUtil.isInteger(animalNumberUp)){
|
|
|
return new Result(10001, "头数应为整数!", false);
|
|
|
}
|
|
|
- String content = "";
|
|
|
- int total = Integer.parseInt(animalNumberUp);
|
|
|
- int sum = 0;
|
|
|
+ String content = "";
|
|
|
+ int total = Integer.parseInt(animalNumberUp);
|
|
|
+ /* int sum = 0;
|
|
|
eartags = eartags.replace(",",",");
|
|
|
eartags = eartags.replace(", ",",");
|
|
|
eartags = eartags.replace(", ",",");
|
|
@@ -253,6 +253,17 @@ public class BillLandingInspectionServiceImpl extends ServiceImpl<BillLandingIns
|
|
|
}
|
|
|
if (sum != total){
|
|
|
return new Result(10001,"实际耳标数量和填写数量不符!",false);
|
|
|
+ }*/
|
|
|
+ EartagResult eartagResult = EartagUtil.getEartagCollection(eartags);
|
|
|
+ if (!eartagResult.getSuccess()){
|
|
|
+ return new Result(10001,eartagResult.getMsg(),false);
|
|
|
+ }
|
|
|
+ if (eartagResult.getEartagList().size() != eartagResult.getEartagSet().size()) {
|
|
|
+ return new Result(10001,"耳标号存在重复",false);
|
|
|
+ }
|
|
|
+ System.out.println("具体耳标号"+eartagResult.getEartagList());
|
|
|
+ if (eartagResult.getEartagList().size() != total){
|
|
|
+ return new Result(10001,"交易数量与实际耳标号数量不符!",false);
|
|
|
}
|
|
|
content = getUrl(content,image1);
|
|
|
content = getUrl(content,image2);
|
|
@@ -363,7 +374,7 @@ public class BillLandingInspectionServiceImpl extends ServiceImpl<BillLandingIns
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Result rejectApplication(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
|
+ public Result rejectApplication(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
|
String id = paramsMap.get("id");
|
|
|
String rejectReason = paramsMap.get("rejectReason");
|
|
|
BillLandingInspection billLandingInspection = this.getById(id);
|