Browse Source

feat(all): 金牌工厂

1 优化金牌暂存单逻辑
dev
zhaoqiaobo 1 week ago
parent
commit
863553e76a
  1. 8
      blade-service/logpm-factory-data/logpm-factory-data-jinpai/src/main/java/com/logpm/factorydata/jinpai/service/impl/DeliveryNoteServiceImpl.java

8
blade-service/logpm-factory-data/logpm-factory-data-jinpai/src/main/java/com/logpm/factorydata/jinpai/service/impl/DeliveryNoteServiceImpl.java

@ -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) {

Loading…
Cancel
Save