Browse Source

1.报错bug修复

dev
zhenghaoyu 17 hours ago
parent
commit
71e1f0729e
  1. 8
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java
  2. 66
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java

8
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java

@ -289,9 +289,11 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
trunklineCostShareRecordEntity.setLoadingWarehouseId(warehouseId); trunklineCostShareRecordEntity.setLoadingWarehouseId(warehouseId);
trunklineCostShareRecordEntity.setLoadingWarehouseName(warehouseName); trunklineCostShareRecordEntity.setLoadingWarehouseName(warehouseName);
trunklineCostShareRecordEntity.setPlanUnloadWarehouseId(finalNodeId); trunklineCostShareRecordEntity.setPlanUnloadWarehouseId(finalNodeId);
BasicdataWarehouseEntity finalWarehouse = warehouseClient.getEntityWarehouseId(finalNodeId); if(Objects.isNull(finalNodeId)){
if (!Objects.isNull(finalWarehouse)) { BasicdataWarehouseEntity finalWarehouse = warehouseClient.getEntityWarehouseId(finalNodeId);
trunklineCostShareRecordEntity.setPlanUnloadWarehouseName(finalWarehouse.getName()); if (!Objects.isNull(finalWarehouse)) {
trunklineCostShareRecordEntity.setPlanUnloadWarehouseName(finalWarehouse.getName());
}
} }
trunklineCostShareRecordEntity.setRealUnloadWarehouseId(unloadNodeId); trunklineCostShareRecordEntity.setRealUnloadWarehouseId(unloadNodeId);
trunklineCostShareRecordEntity.setRealUnloadWarehouseName(unloadNodeName); trunklineCostShareRecordEntity.setRealUnloadWarehouseName(unloadNodeName);

66
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java

@ -884,42 +884,48 @@ public class TrunklineAdvanceServiceImpl extends BaseServiceImpl<TrunklineAdvanc
} }
} else { } else {
Long clientId = basicdataTripartiteMallClient.getClientIdByNameAndBrand(dealerName, advanceEntity.getBrand()); Long clientId = basicdataTripartiteMallClient.getClientIdByNameAndBrand(dealerName, advanceEntity.getBrand());
BasicdataClientEntity basicdataClientEntity = basicdataClientClient.findEntityById(clientId); if(!Objects.isNull(clientId)){
if (!Objects.isNull(basicdataClientEntity)) { BasicdataClientEntity basicdataClientEntity = basicdataClientClient.findEntityById(clientId);
String clientType = basicdataClientEntity.getClientType(); if (!Objects.isNull(basicdataClientEntity)) {
if ("5".equals(clientType)) { String clientType = basicdataClientEntity.getClientType();
stockArticleEntity.setStoreId(basicdataClientEntity.getId()); if ("5".equals(clientType)) {
stockArticleEntity.setStoreCode(basicdataClientEntity.getClientCode()); stockArticleEntity.setStoreId(basicdataClientEntity.getId());
stockArticleEntity.setStoreName(basicdataClientEntity.getClientName()); stockArticleEntity.setStoreCode(basicdataClientEntity.getClientCode());
//查询门店的父级商场 stockArticleEntity.setStoreName(basicdataClientEntity.getClientName());
Long pid = basicdataClientEntity.getPid(); //查询门店的父级商场
BasicdataClientEntity pidEntity = basicdataClientClient.findEntityById(pid); Long pid = basicdataClientEntity.getPid();
if (!Objects.isNull(pidEntity)) { if(!Objects.isNull(pid)){
String pidEntityClientType = pidEntity.getClientType(); BasicdataClientEntity pidEntity = basicdataClientClient.findEntityById(pid);
if ("2".equals(pidEntityClientType)) { if (!Objects.isNull(pidEntity)) {
//商城 String pidEntityClientType = pidEntity.getClientType();
stockArticleEntity.setMallId(pidEntity.getId()); if ("2".equals(pidEntityClientType)) {
stockArticleEntity.setMallName(pidEntity.getClientName()); //商城
stockArticleEntity.setMallCode(pidEntity.getClientCode()); stockArticleEntity.setMallId(pidEntity.getId());
stockArticleEntity.setMallName(pidEntity.getClientName());
BasicdataStoreBusinessEntity basicdataStoreBusinessEntity = basicdataStoreBusinessClient.findByClientIdAndTypeService(pidEntity.getId(), 3); stockArticleEntity.setMallCode(pidEntity.getClientCode());
if (!Objects.isNull(basicdataStoreBusinessEntity)) {
stockArticleEntity.setTypeService(basicdataStoreBusinessEntity.getMold()); BasicdataStoreBusinessEntity basicdataStoreBusinessEntity = basicdataStoreBusinessClient.findByClientIdAndTypeService(pidEntity.getId(), 3);
if (!Objects.isNull(basicdataStoreBusinessEntity)) {
stockArticleEntity.setTypeService(basicdataStoreBusinessEntity.getMold());
}
}
} }
} }
}
} else if ("2".equals(clientType)) {
//商城
stockArticleEntity.setMallId(basicdataClientEntity.getId());
stockArticleEntity.setMallName(basicdataClientEntity.getClientName());
stockArticleEntity.setMallCode(basicdataClientEntity.getClientCode());
BasicdataStoreBusinessEntity basicdataStoreBusinessEntity = basicdataStoreBusinessClient.findByClientIdAndTypeService(basicdataClientEntity.getId(), 3); } else if ("2".equals(clientType)) {
if (!Objects.isNull(basicdataStoreBusinessEntity)) { //商城
stockArticleEntity.setTypeService(basicdataStoreBusinessEntity.getMold()); stockArticleEntity.setMallId(basicdataClientEntity.getId());
stockArticleEntity.setMallName(basicdataClientEntity.getClientName());
stockArticleEntity.setMallCode(basicdataClientEntity.getClientCode());
BasicdataStoreBusinessEntity basicdataStoreBusinessEntity = basicdataStoreBusinessClient.findByClientIdAndTypeService(basicdataClientEntity.getId(), 3);
if (!Objects.isNull(basicdataStoreBusinessEntity)) {
stockArticleEntity.setTypeService(basicdataStoreBusinessEntity.getMold());
}
} }
} }
} }
} }
stockArticleEntity.setCustomerName(advanceEntity.getCustomerName()); stockArticleEntity.setCustomerName(advanceEntity.getCustomerName());
stockArticleEntity.setCustomerTelephone(advanceEntity.getCustomerPhone()); stockArticleEntity.setCustomerTelephone(advanceEntity.getCustomerPhone());

Loading…
Cancel
Save