From 3622fa907cbe2febdc5a0d39547a32afdf730cf7 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo Date: Fri, 19 Apr 2024 11:30:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(service):=20=E4=BC=98=E5=8C=96=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E4=BD=93=E7=B3=BB=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicdata/enums/FullVehicleTypeEnums.java | 4 ++-- .../impl/BasicdataPriceServiceImpl.java | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/enums/FullVehicleTypeEnums.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/enums/FullVehicleTypeEnums.java index 38f7f7a0a..2ad5f0f67 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/enums/FullVehicleTypeEnums.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/enums/FullVehicleTypeEnums.java @@ -11,8 +11,8 @@ import org.springblade.common.model.IDict; public enum FullVehicleTypeEnums implements IDict { PICK_UP(1, "提货整车"), - TRUNK_LINE(2, "配送干线整车"), - DISPATCH(4, "整车"), + TRUNK_LINE(2, "干线整车"), + DISPATCH(4, "配送整车"), ; FullVehicleTypeEnums(Integer code, String text) { diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java index 55c2729e4..5e6d79ced 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java @@ -307,8 +307,8 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl routeEntities = basicdataPriceRouteService.list(Wrappers.lambdaQuery() @@ -336,7 +336,8 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl routeEntities = basicdataPriceRouteService.list(Wrappers.lambdaQuery() @@ -365,7 +366,8 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl> categoryBasicMap = new HashMap<>(); - List dispatchEntities = dispatchMap.get(1); + List dispatchEntities = dispatchMap.get(CostTypeEnums.NOMAL.getCode()); if (CollUtil.isNotEmpty(dispatchEntities)) { // 将数据放到categoryBasicMap中 dispatchEntities.forEach(item -> { @@ -560,7 +562,7 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl dispatchEntities1 = dispatchMap.get(2); + List dispatchEntities1 = dispatchMap.get(CostTypeEnums.ADD.getCode()); if (CollUtil.isNotEmpty(dispatchEntities1)) { List basicVOList = new ArrayList<>(); dispatchEntities1.forEach(item -> { @@ -592,7 +594,7 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl> categoryBasicMap = new HashMap<>(); - List warehouseEntities = warehouseMap.get(1); + List warehouseEntities = warehouseMap.get(CostTypeEnums.NOMAL.getCode()); if (CollUtil.isNotEmpty(warehouseEntities)) { warehouseEntities.forEach(item -> { Integer type = item.getType(); @@ -647,7 +649,7 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl warehouseEntities1 = warehouseMap.get(2); + List warehouseEntities1 = warehouseMap.get(CostTypeEnums.ADD.getCode()); if (CollUtil.isNotEmpty(warehouseEntities1)) { List additionalVOS = warehouseEntities1.stream().map(item -> { PriceWarehouseAdditionalVO additionalVO = new PriceWarehouseAdditionalVO();