|
@@ -178,18 +178,18 @@ public class BizInboundOrderController extends BaseController {
|
|
|
if (maxCode != null) {
|
|
|
codeValue = maxCode.getInboundNumber();
|
|
|
// 获取4位尾数部分
|
|
|
- int lastFourDigits = Integer.parseInt(codeValue.substring(beginIndex, beginIndex + 4));
|
|
|
+ int lastFourDigits = Integer.parseInt(codeValue.substring(beginIndex, beginIndex + 5));
|
|
|
lastFourDigits++; // 加1
|
|
|
- codeValue = codeValue.substring(0, beginIndex) + String.format("%04d", lastFourDigits);
|
|
|
+ codeValue = codeValue.substring(0, beginIndex) + String.format("%05d", lastFourDigits);
|
|
|
previous = codeValue;
|
|
|
} else {
|
|
|
- previous = (beginCode + "0001");
|
|
|
+ previous = (beginCode + "00001");
|
|
|
}
|
|
|
} else {
|
|
|
- codeValue = previous.startsWith(beginCode) ? previous : beginCode + "0000";
|
|
|
- int lastFourDigits = Integer.parseInt(codeValue.substring(beginIndex, beginIndex + 4));
|
|
|
+ codeValue = previous.startsWith(beginCode) ? previous : beginCode + "00000";
|
|
|
+ int lastFourDigits = Integer.parseInt(codeValue.substring(beginIndex, beginIndex + 5));
|
|
|
lastFourDigits++; // 加1
|
|
|
- codeValue = codeValue.substring(0, beginIndex) + String.format("%04d", lastFourDigits);
|
|
|
+ codeValue = codeValue.substring(0, beginIndex) + String.format("%05d", lastFourDigits);
|
|
|
previous = codeValue;
|
|
|
}
|
|
|
|
|
@@ -332,6 +332,9 @@ public class BizInboundOrderController extends BaseController {
|
|
|
detail.setLabelNumber(packageItem != null ? packageItem.getSingleNumber() : null);
|
|
|
detail.setDeptCode(dept != null ? dept.getDeptCode() : null);
|
|
|
detail.setInboundOrderId(inputDetails.get(0).getInboundOrderId());
|
|
|
+ detail.setBgyna(packageItem != null ? packageItem.getBgyna() : null);
|
|
|
+ detail.setBgyno(packageItem != null ? packageItem.getBgyno() : null);
|
|
|
+ detail.setBgyId(packageItem != null ? packageItem.getBgyId() : null);
|
|
|
}
|
|
|
details.add(detail);
|
|
|
});
|