This commit is contained in:
linfso 2024-06-20 10:13:18 +08:00
parent 14d191d504
commit d485a72311

View File

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