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