|
@@ -158,11 +158,13 @@ public class BillLandingInspectionServiceImpl extends ServiceImpl<BillLandingIns
|
|
|
return new Result(10001, "存在相同检疫证号!", false);
|
|
|
}
|
|
|
String eartags = billLandingInspection.getEartags();
|
|
|
+ eartags.replace(",",",");
|
|
|
if (eartags.contains(",")){
|
|
|
String[] eartag = eartags.split(",");
|
|
|
for (String input : eartag) {
|
|
|
if (input.contains("-")){
|
|
|
String start = input.substring(0, input.indexOf("-"));
|
|
|
+ System.out.println("落地检耳标号:"+start);
|
|
|
if (start.length() != 15){
|
|
|
return new Result(10001,"耳标号格式错误需输入15位数字",false);
|
|
|
}
|
|
@@ -173,7 +175,6 @@ public class BillLandingInspectionServiceImpl extends ServiceImpl<BillLandingIns
|
|
|
String substring1 = input.substring(start.length() - end.length(), start.length());
|
|
|
String substring = start.substring(0, start.length() - end.length());
|
|
|
System.out.println(substring);
|
|
|
- List<String> eartagNos = new ArrayList<>();
|
|
|
if (Integer.parseInt(substring1) >Integer.parseInt(end) ){
|
|
|
return new Result(10001,"耳标号格式错误,包含-号耳标号需递增",false);
|
|
|
}
|