This commit is contained in:
linfso 2024-10-30 17:43:55 +08:00
parent 29a9f9c78b
commit b50c6e4e18

View File

@ -1972,7 +1972,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
if("1".equals(emisWaybillSave.getBlGenSubbill()) ){
// 子单号拼接
StringBuilder sb = new StringBuilder();
for(int i=1;i<=emisWaybillSave.getParcelQty().intValue();i++){
for(int i=1;i<=emisWaybillSave.getParcelQty().intValue()&&i<=200;i++){
sb.append(emisWaybillSave.getBillCode()+ StringUtils.leftPad(String.valueOf(i),4,"0")+",");
}
emisWaybillSave.setBillCodeSub(sb.toString());
@ -2352,7 +2352,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
if("1".equals(emisWaybillSave.getBlGenSubbill()) ){
// 子单号拼接
StringBuilder sb = new StringBuilder();
for(int i=1;i<=emisWaybillSave.getParcelQty().intValue();i++){
for(int i=1;i<=emisWaybillSave.getParcelQty().intValue()&&i<200;i++){
sb.append(emisWaybillSave.getBillCode()+ StringUtils.leftPad(String.valueOf(i),4,"0")+",");
}
emisWaybillSave.setBillCodeSub(sb.toString());