|
|
@ -74,6 +74,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
private final ITrunklineWaybillPackageService trunklineWaybillPackageService; |
|
|
|
private final ITrunklineWaybillPackageService trunklineWaybillPackageService; |
|
|
|
private final IBasicMaterialClient basicMaterialClient; |
|
|
|
private final IBasicMaterialClient basicMaterialClient; |
|
|
|
private final IBasicdataBrandClient basicdataBrandClient; |
|
|
|
private final IBasicdataBrandClient basicdataBrandClient; |
|
|
|
|
|
|
|
private final IBasicdataForwardingUnitClient basicdataForwardingUnitClient; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public IPage<TrunklineAdvanceVO> advancePageList(AdvanceDTO advanceDTO) { |
|
|
|
public IPage<TrunklineAdvanceVO> advancePageList(AdvanceDTO advanceDTO) { |
|
|
@ -130,8 +131,18 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
openOrderVO.setDepartureWarehouseName(basicdataWarehouseEntity.getName()); |
|
|
|
openOrderVO.setDepartureWarehouseName(basicdataWarehouseEntity.getName()); |
|
|
|
openOrderVO.setDepartureWarehouseId(warehouseId); |
|
|
|
openOrderVO.setDepartureWarehouseId(warehouseId); |
|
|
|
openOrderVO.setTotalNum(totalNum); |
|
|
|
openOrderVO.setTotalNum(totalNum); |
|
|
|
|
|
|
|
//发货单位
|
|
|
|
//发货单位 TODO
|
|
|
|
Long shipperId = basicdataForwardingUnitClient.findForwardingUnitByWarehouseIdAndUserId(warehouseId,AuthUtil.getUserId()); |
|
|
|
|
|
|
|
if(!Objects.isNull(shipperId)){ |
|
|
|
|
|
|
|
BasicdataClientEntity basicdataClientEntity = basicdataClientClient.findEntityById(shipperId); |
|
|
|
|
|
|
|
if(!Objects.isNull(basicdataClientEntity)){ |
|
|
|
|
|
|
|
openOrderVO.setShipperClientId(shipperId); |
|
|
|
|
|
|
|
openOrderVO.setShipper(basicdataClientEntity.getClientName()); |
|
|
|
|
|
|
|
openOrderVO.setShipperName(basicdataClientEntity.getLinkman()); |
|
|
|
|
|
|
|
openOrderVO.setShipperMobile(basicdataClientEntity.getPhone()); |
|
|
|
|
|
|
|
openOrderVO.setShipperAddress(basicdataClientEntity.getDetailedly()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//收货单位-----根据三方商场找到对应的clientId
|
|
|
|
//收货单位-----根据三方商场找到对应的clientId
|
|
|
@ -151,20 +162,22 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
destinationArray.add(bladeRegionProvinceId); |
|
|
|
destinationArray.add(bladeRegionProvinceId); |
|
|
|
destinationArray.add(bladeRegionCityId); |
|
|
|
destinationArray.add(bladeRegionCityId); |
|
|
|
String name = regionFeign.getName(bladeRegionCityId); |
|
|
|
String name = regionFeign.getName(bladeRegionCityId); |
|
|
|
|
|
|
|
String areaId = bladeRegionCityId; |
|
|
|
if(!StringUtil.isBlank(badeRegionAreaId)){ |
|
|
|
if(!StringUtil.isBlank(badeRegionAreaId)){ |
|
|
|
destinationArray.add(badeRegionAreaId); |
|
|
|
destinationArray.add(badeRegionAreaId); |
|
|
|
name = regionFeign.getName(badeRegionAreaId); |
|
|
|
name = regionFeign.getName(badeRegionAreaId); |
|
|
|
|
|
|
|
areaId = badeRegionAreaId; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
openOrderVO.setDestination(name); |
|
|
|
openOrderVO.setDestination(name); |
|
|
|
|
|
|
|
openOrderVO.setDestinationCode(areaId); |
|
|
|
openOrderVO.setDestinationArray(destinationArray); |
|
|
|
openOrderVO.setDestinationArray(destinationArray); |
|
|
|
|
|
|
|
|
|
|
|
openOrderVO.setDefaultPayWay(basicdataClientEntity.getDefaultPaymentMethods()); |
|
|
|
openOrderVO.setDefaultPayWay(basicdataClientEntity.getDefaultPaymentMethods()); |
|
|
|
|
|
|
|
|
|
|
|
//查询目的仓数据
|
|
|
|
//查询目的仓数据
|
|
|
|
List<BasicdataStorageServicesEntity> storageServicesEntities = basicdataStorageServicesClient.findBySendWarehouseIdAndClientId(warehouseId,clientId); |
|
|
|
BasicdataStorageServicesEntity basicdataStorageServicesEntity = basicdataStorageServicesClient.findEntityBySendWarehouseIdAndClientId(warehouseId, clientId); |
|
|
|
if(!storageServicesEntities.isEmpty()){ |
|
|
|
if(!Objects.isNull(basicdataStorageServicesEntity)){ |
|
|
|
BasicdataStorageServicesEntity basicdataStorageServicesEntity = storageServicesEntities.get(0); |
|
|
|
|
|
|
|
openOrderVO.setDestinationWarehouseId(basicdataStorageServicesEntity.getServeWarehouseId()); |
|
|
|
openOrderVO.setDestinationWarehouseId(basicdataStorageServicesEntity.getServeWarehouseId()); |
|
|
|
openOrderVO.setDestinationWarehouseName(basicdataStorageServicesEntity.getServeWarehouseName()); |
|
|
|
openOrderVO.setDestinationWarehouseName(basicdataStorageServicesEntity.getServeWarehouseName()); |
|
|
|
} |
|
|
|
} |
|
|
|