|
|
@ -1284,6 +1284,8 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
|
|
|
|
pw.setRecordId(IdUtils.fastSimpleUUID());
|
|
|
|
pw.setRecordId(IdUtils.fastSimpleUUID());
|
|
|
|
if(pall.compareTo(pn)<0) {//最后一托盘
|
|
|
|
if(pall.compareTo(pn)<0) {//最后一托盘
|
|
|
|
pw.setBatchQuantity(pall);
|
|
|
|
pw.setBatchQuantity(pall);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
pw.setBatchQuantity(pn);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pw.setPalletNo(i++);
|
|
|
|
pw.setPalletNo(i++);
|
|
|
|
pw.setPalletCode(pow.getPalletCode()+"-"+pw.getPalletNo());
|
|
|
|
pw.setPalletCode(pow.getPalletCode()+"-"+pw.getPalletNo());
|
|
|
|