Browse Source

Merge remote-tracking branch 'origin/dev' into dev

master
pref_mail@163.com 9 months ago
parent
commit
ea02882e60
  1. 14
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

14
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

@ -306,15 +306,19 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
String brand = openOrderDTO.getBrand(); String brand = openOrderDTO.getBrand();
Long brandId = openOrderDTO.getBrandId(); Long brandId = openOrderDTO.getBrandId();
// BasicdataBrandEntity basicdataBrandEntity = basicdataBrandClient.findEntityByName(brand);
WarehouseWaybillEntity waybillEntity = new WarehouseWaybillEntity(); WarehouseWaybillEntity waybillEntity = new WarehouseWaybillEntity();
waybillEntity.setWaybillNo(waybillNo); waybillEntity.setWaybillNo(waybillNo);
// if (!Objects.isNull(basicdataBrandEntity)) { if(Objects.isNull(brandId)){
// waybillEntity.setBrandId(basicdataBrandEntity.getId()); BasicdataBrandEntity basicdataBrandEntity = basicdataBrandClient.findEntityByName(brand);
// } if (!Objects.isNull(basicdataBrandEntity)) {
waybillEntity.setBrandId(basicdataBrandEntity.getId());
}
}else{
waybillEntity.setBrandId(brandId); waybillEntity.setBrandId(brandId);
}
waybillEntity.setBrand(brand); waybillEntity.setBrand(brand);
waybillEntity.setOrderNo(openOrderDTO.getOrderCode()); waybillEntity.setOrderNo(openOrderDTO.getOrderCode());
waybillEntity.setDepartureWarehouseId(departureWarehouseId); waybillEntity.setDepartureWarehouseId(departureWarehouseId);

Loading…
Cancel
Save