Commit 602cc502 authored by 332784038@qq.com's avatar 332784038@qq.com

Merge remote-tracking branch 'origin/release' into release

parents 04497658 f3524bcb
...@@ -432,9 +432,9 @@ public class CodeUtils { ...@@ -432,9 +432,9 @@ public class CodeUtils {
(StringUtils.equals(transportShort, "A") ? maxOddOrderNumbers.substring(isExternalWarehouse && isConcentrateTransport ? 5 : (isExternalWarehouse || isConcentrateTransport ? 4 : 3), maxOddOrderNumbers.length() - endIndex) : (StringUtils.equals(transportShort, "A") ? maxOddOrderNumbers.substring(isExternalWarehouse && isConcentrateTransport ? 5 : (isExternalWarehouse || isConcentrateTransport ? 4 : 3), maxOddOrderNumbers.length() - endIndex) :
maxOddOrderNumbers.substring(isExternalWarehouse && isConcentrateTransport ? 6 : (isExternalWarehouse || isConcentrateTransport ? 5 : 4), maxOddOrderNumbers.length() - endIndex))); maxOddOrderNumbers.substring(isExternalWarehouse && isConcentrateTransport ? 6 : (isExternalWarehouse || isConcentrateTransport ? 5 : 4), maxOddOrderNumbers.length() - endIndex)));
//把截取的最后四位数解析为int //把截取的最后四位数解析为int
int endIntNum = Integer.parseInt(endNum); long endIntNum = Long.parseLong(endNum);
//在将其加1(自增1) //在将其加1(自增1)
int newEndIntNum = (StringUtils.equals(transportShort, "SA") ? 10000 : 100000) + endIntNum + 1; long newEndIntNum = (StringUtils.equals(transportShort, "SA") ? 10000 : 100000) + endIntNum + 1;
//把10000或100000的1去掉,获取到最新的后5位 //把10000或100000的1去掉,获取到最新的后5位
String newEndNum = String.valueOf(newEndIntNum).substring(1); String newEndNum = String.valueOf(newEndIntNum).substring(1);
//生成单号 //生成单号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment