Browse Source

feat(all): 林氏工厂

1 修改林氏家居订单数据生成暂存单品类物料信息不正确问题
dev
zhaoqiaobo 3 months ago
parent
commit
d0e4923e89
  1. 20
      blade-service/logpm-factory-data/logpm-factory-data-linsy/src/main/java/com/logpm/factorydata/linsy/service/impl/DeliveryNoteServiceImpl.java

20
blade-service/logpm-factory-data/logpm-factory-data-linsy/src/main/java/com/logpm/factorydata/linsy/service/impl/DeliveryNoteServiceImpl.java

@ -128,12 +128,20 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
advanceDetailEntity.setOrderCode(vo.getCustomizedBillCode());
advanceDetailEntity.setBrand(BrandEnums.LINSY.getValue());
advanceDetailEntity.setSystemType("线上");
advanceDetailEntity.setFirstPackName(orderPackageDTO.getMaterialCode());
// 二级品类名称
advanceDetailEntity.setSecondPackName(orderPackageDTO.getMaterialCode());
// 三级品类名称
advanceDetailEntity.setThirdPackName(orderPackageDTO.getMaterialCode());
advanceDetailEntity.setMaterialName(orderPackageDTO.getMaterialName());
// advanceDetailEntity.setFirstPackName(orderPackageDTO.getMaterialCode());
String materialName = orderPackageDTO.getMaterialName();
advanceDetailEntity.setFirstPackName("配件");
advanceDetailEntity.setSecondPackName("配件");
advanceDetailEntity.setThirdPackName("配件");
advanceDetailEntity.setMaterialName("配件");
if (StrUtil.isNotEmpty(materialName)) {
if(!StrUtil.startWith(materialName,"LSMY")){
advanceDetailEntity.setFirstPackName(materialName);
advanceDetailEntity.setSecondPackName(materialName);
advanceDetailEntity.setThirdPackName(materialName);
advanceDetailEntity.setMaterialName(materialName);
}
}
advanceDetailEntity.setMaterialCode(orderPackageDTO.getMaterialCode());
advanceDetailEntity.setSiteName(vo.getSupplierName());
advanceDetailEntity.setSiteCode("");

Loading…
Cancel
Save