Browse Source

fix:修复测试问题

visual
pref_mail@163.com 4 months ago
parent
commit
470177c4f8
  1. 2
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java
  2. 84
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java
  3. 2
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

2
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java

@ -133,7 +133,7 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImpl<BasicdataWare
@Override
public List<BasicdataWarehouseEntity> getWarehouseList() {
List<BasicdataWarehouseEntity> myWatchWarehouse = getMyWatchWarehouse();
if (myWatchWarehouse.size() > 0) {
if (!myWatchWarehouse.isEmpty()) {
return myWatchWarehouse;
}
List<BasicdataWarehouseEntity> basicdataGoodsShelfVOList = warehouseMapper.getWarehouseList();

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

@ -262,55 +262,57 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
//收货单位-----根据三方商场找到对应的clientId
Long clientId = basicdataTripartiteMallClient.getClientIdByNameAndBrandAndCode(dealerName,StringUtil.isBlank(dealerCode)?"":dealerCode, brand);
BasicdataClientVO basicdataClientEntity = basicdataClientClient.findEntityVoById(clientId);
if (!Objects.isNull(basicdataClientEntity)) {
openOrderVO.setConsigneeClientId(clientId);
openOrderVO.setConsignee(basicdataClientEntity.getClientName());
openOrderVO.setConsigneeName(basicdataClientEntity.getLinkman());
openOrderVO.setConsigneeMobile(basicdataClientEntity.getPhone());
openOrderVO.setConsigneeAddress(basicdataClientEntity.getDetailedly());
if(!Objects.isNull(clientId)){
BasicdataClientVO basicdataClientEntity = basicdataClientClient.findEntityVoById(clientId);
if (!Objects.isNull(basicdataClientEntity)) {
openOrderVO.setConsigneeClientId(clientId);
openOrderVO.setConsignee(basicdataClientEntity.getClientName());
openOrderVO.setConsigneeName(basicdataClientEntity.getLinkman());
openOrderVO.setConsigneeMobile(basicdataClientEntity.getPhone());
openOrderVO.setConsigneeAddress(basicdataClientEntity.getDetailedly());
List<String> destinationArray = new ArrayList<>();
String badeRegionAreaId = basicdataClientEntity.getBladeRegionAreaId();
String bladeRegionProvinceId = basicdataClientEntity.getBladeRegionProvinceId();
String bladeRegionCityId = basicdataClientEntity.getBladeRegionCityId();
destinationArray.add(bladeRegionProvinceId);
destinationArray.add(bladeRegionCityId);
String name = regionFeign.getName(bladeRegionCityId);
String areaId = bladeRegionCityId;
if (!StringUtil.isBlank(badeRegionAreaId)) {
destinationArray.add(badeRegionAreaId);
name = regionFeign.getName(badeRegionAreaId);
areaId = badeRegionAreaId;
}
List<String> destinationArray = new ArrayList<>();
String badeRegionAreaId = basicdataClientEntity.getBladeRegionAreaId();
String bladeRegionProvinceId = basicdataClientEntity.getBladeRegionProvinceId();
String bladeRegionCityId = basicdataClientEntity.getBladeRegionCityId();
destinationArray.add(bladeRegionProvinceId);
destinationArray.add(bladeRegionCityId);
String name = regionFeign.getName(bladeRegionCityId);
String areaId = bladeRegionCityId;
if (!StringUtil.isBlank(badeRegionAreaId)) {
destinationArray.add(badeRegionAreaId);
name = regionFeign.getName(badeRegionAreaId);
areaId = badeRegionAreaId;
}
openOrderVO.setDefaultDeliveryWay("2");
String typeService = "1";
BasicdataStoreBusinessEntity storeBusinessEntity = basicdataStoreBusinessClient.findByClientIdAndTypeService(clientId, 3);
if(!Objects.isNull(storeBusinessEntity)){
typeService = storeBusinessEntity.getMold();
}
if ("1".equals(typeService)){
openOrderVO.setDefaultDeliveryWay("2");
}else if("2".equals(typeService)){
openOrderVO.setDefaultDeliveryWay("3");
}else if("3".equals(typeService)){
openOrderVO.setDefaultDeliveryWay("1");
}
String typeService = "1";
BasicdataStoreBusinessEntity storeBusinessEntity = basicdataStoreBusinessClient.findByClientIdAndTypeService(clientId, 3);
if(!Objects.isNull(storeBusinessEntity)){
typeService = storeBusinessEntity.getMold();
}
if ("1".equals(typeService)){
openOrderVO.setDefaultDeliveryWay("2");
}else if("2".equals(typeService)){
openOrderVO.setDefaultDeliveryWay("3");
}else if("3".equals(typeService)){
openOrderVO.setDefaultDeliveryWay("1");
}
openOrderVO.setDestination(name);
openOrderVO.setDestinationCode(areaId);
openOrderVO.setDestinationArray(destinationArray);
openOrderVO.setDestination(name);
openOrderVO.setDestinationCode(areaId);
openOrderVO.setDestinationArray(destinationArray);
openOrderVO.setDefaultPayWay(basicdataClientEntity.getDefaultPaymentMethods());
openOrderVO.setDefaultPayWay(basicdataClientEntity.getDefaultPaymentMethods());
//查询目的仓数据
BasicdataStorageServicesEntity basicdataStorageServicesEntity = basicdataStorageServicesClient.findEntityBySendWarehouseIdAndClientId(warehouseId, clientId);
if (!Objects.isNull(basicdataStorageServicesEntity)) {
openOrderVO.setDestinationWarehouseId(basicdataStorageServicesEntity.getServeWarehouseId());
openOrderVO.setDestinationWarehouseName(basicdataStorageServicesEntity.getServeWarehouseName());
//查询目的仓数据
BasicdataStorageServicesEntity basicdataStorageServicesEntity = basicdataStorageServicesClient.findEntityBySendWarehouseIdAndClientId(warehouseId, clientId);
if (!Objects.isNull(basicdataStorageServicesEntity)) {
openOrderVO.setDestinationWarehouseId(basicdataStorageServicesEntity.getServeWarehouseId());
openOrderVO.setDestinationWarehouseName(basicdataStorageServicesEntity.getServeWarehouseName());
}
}
}

2
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

@ -480,7 +480,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
// 发车
if (ObjectUtil.equal(type, 1)) {
if (ObjectUtil.isEmpty(node)) {
if (ObjectUtil.equal(warehouseId, brand.getStartWarehouseId())) {
if (ObjectUtil.equal(warehouseId, Long.parseLong(brand.getStartWarehouseId()))) {
node = WorkNodeEnums.INITIAL_WAREHOUSE_DEPART;
} else {
node = WorkNodeEnums.TRANSFER_WAREHOUSE_DEPART;

Loading…
Cancel
Save