|
@@ -220,9 +220,7 @@ public class EartagDeviceRegisterServiceImpl extends ServiceImpl<EartagDeviceReg
|
|
|
String maxDeviceCode = eartagDeviceRegisters.stream().max(Comparator.comparing(EartagDeviceRegister::getDeviceCode)).get().getDeviceCode();
|
|
|
String substring = maxDeviceCode.substring(maxDeviceCode.length() - 6);
|
|
|
int code = Integer.valueOf(substring)+1;
|
|
|
- String format = String.format("%6d", code);
|
|
|
-
|
|
|
- System.out.println("--------------------"+format);
|
|
|
+ String format = String.format("%06d", code);
|
|
|
return new Result(ResultCode.SUCCESS,farmCode+format);
|
|
|
}
|
|
|
}
|