Browse Source

fix:

修复库存品入库存在空格问题
pull/30/head
pref_mail@163.com 12 months ago
parent
commit
2288c1a824
  1. 12
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWarehousingEntryServiceImpl.java

12
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWarehousingEntryServiceImpl.java

@ -481,11 +481,11 @@ public class WarehouseWarehousingEntryServiceImpl extends BaseServiceImpl<Wareho
WarehouseWarehousingDetailEntity detail = new WarehouseWarehousingDetailEntity();
detail.setConditions("1");
detail.setSku(i.getSku());
detail.setProductCode(i.getProductCode());
detail.setProductName(i.getProductName());
detail.setProductCode(i.getProductCode());
detail.setProductUnit(i.getProductUnit());
detail.setPackagingNumber(i.getPackagingNumber());
detail.setProductCode(i.getProductCode().trim());
detail.setProductName(i.getProductName().trim());
detail.setProductCode(i.getProductCode().trim());
detail.setProductUnit(i.getProductUnit().trim());
detail.setPackagingNumber(i.getPackagingNumber().trim());
detail.setPackagingSpecifications(i.getPackagingSpecifications());
detail.setCreateInventory(i.getCreateInventory());
detail.setWarehousingEntryId(entryEntity.getId());
@ -499,7 +499,7 @@ public class WarehouseWarehousingEntryServiceImpl extends BaseServiceImpl<Wareho
throw new ServiceException(i.getProductName()+i.getProductCode()+i.getSku()+"品牌信息不存在!!请维护客户品牌数据!!!");
}
BasicMaterialEntity materialOwn = basicMaterialClient.getMaterialOwn(i.getProductCode(), i.getProductName(), i.getSku());
BasicMaterialEntity materialOwn = basicMaterialClient.getMaterialOwn(detail.getProductCode(), detail.getProductName(), detail.getSku());
if(Func.isNotEmpty(materialOwn)){
detail.setMaterialId(materialOwn.getId());//物料ID
}else{

Loading…
Cancel
Save