|
|
|
@ -194,7 +194,7 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
advanceEntity.setTenantId(tenantId); |
|
|
|
|
advanceEntity.setStatus(0); |
|
|
|
|
advanceEntity.setIsDeleted(0); |
|
|
|
|
advanceEntity.setHasPackage(CollUtil.isNotEmpty(boxCodes) ? 1 : 0); |
|
|
|
|
advanceEntity.setHasPackage(1); |
|
|
|
|
advanceEntity.setOrderType(""); |
|
|
|
|
advanceEntity.setBrand(BrandEnums.JP.getValue()); |
|
|
|
|
advanceEntity.setSiteName(vo.getOrgName()); |
|
|
|
@ -252,6 +252,12 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
if (StrUtil.isNotEmpty(goodsVolume)) { |
|
|
|
|
volume = new BigDecimal(goodsVolume); |
|
|
|
|
} |
|
|
|
|
// 如果有数量没有包条码,则生成系统包条
|
|
|
|
|
if(CollUtil.isEmpty(boxCodes)){ |
|
|
|
|
for (int i = 0; i < Convert.toInt(orderInfoVO.getGoodsNumber()); i++) { |
|
|
|
|
boxCodes.add(orderInfoVO.getCustomItemNo() + "-" + (i+1)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
int size = boxCodes.size(); |
|
|
|
|
int index = 0; |
|
|
|
|
for (String packageCode : boxCodes) { |
|
|
|
|