|
|
|
@ -209,7 +209,8 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
// advanceDetailEntity.setQuantity((StrUtil.isNotBlank(orderPackageDTO.getQty()) && NumberUtil.isNumber(orderPackageDTO.getQty())) ? Convert.toInt(orderPackageDTO.getQty()) : 0);
|
|
|
|
|
advanceDetailEntity.setQuantity(1); |
|
|
|
|
// 按老系统生成新的逻辑的包件号 OLO2312064418-20231226010129-1-001
|
|
|
|
|
if (anInt > 1) { |
|
|
|
|
// 标准台面全部使用新码,其他的数量大于 1 的使用新码
|
|
|
|
|
if (StrUtil.equals(orderPackageDTO.getType(),"标准台面") || anInt > 1) { |
|
|
|
|
advanceDetailEntity.setOrderPackageCode("OLO" + orderPackageDTO.getSn() + "-" + DateUtil.format(new Date(), "yyyyMMddHHmmss") + "-" + num + "-" + StrUtil.padPre(String.valueOf(i + 1), 3, "0")); |
|
|
|
|
} else { |
|
|
|
|
advanceDetailEntity.setOrderPackageCode(orderPackageDTO.getSn()); |
|
|
|
|