From c294457ccb768bedfcb4cd425c49436fa6746579 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Fri, 6 Dec 2024 15:29:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8F=98=E9=87=8F=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ktg/mes/wm/controller/WmsInPlanController.java | 2 +- .../src/main/java/com/ktg/mes/wm/mapper/WmsInPlanMapper.java | 2 +- .../main/java/com/ktg/mes/wm/service/IWmsInPlanService.java | 2 +- .../mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java | 2 +- .../com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java index 8d4a6c9..4c5daa3 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInPlanController.java @@ -62,7 +62,7 @@ public class WmsInPlanController extends BaseController { */ @PreAuthorize("@ss.hasPermi('wm:PLAN:query')") @GetMapping(value = "/{planId}") - public AjaxResult getInfo(@PathVariable("planId") String planId) { + public AjaxResult getInfo(@PathVariable("planId") Long planId) { return AjaxResult.success(wmsInPlanService.selectWmsInPlanByPlanId(planId)); } diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanMapper.java b/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanMapper.java index 0374056..bc156f3 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanMapper.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanMapper.java @@ -20,7 +20,7 @@ public interface WmsInPlanMapper * @param planId 入库计划主键 * @return 入库计划 */ - public WmsInPlan selectWmsInPlanByPlanId(String planId); + public WmsInPlan selectWmsInPlanByPlanId(Long planId); /** * 查询入库计划列表 diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanService.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanService.java index cef7914..4798bcd 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanService.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanService.java @@ -17,7 +17,7 @@ public interface IWmsInPlanService * @param planId 入库计划主键 * @return 入库计划 */ - public WmsInPlan selectWmsInPlanByPlanId(String planId); + public WmsInPlan selectWmsInPlanByPlanId(Long planId); WmsInPlan selectWmsInPlanByPlanCode(String planCode); diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java index bdf379c..1374126 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanDetailEntityServiceImpl.java @@ -66,7 +66,7 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS List handleWmsInPlanDetailEntityList = new ArrayList<>(); wmsInPlanDetailEntityList.forEach(entity -> { // 获取入库计划信息 - WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId().toString()); + WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(entity.getPlanId()); // 获取入库计划 WmsBusinessType wmsBusinessType = wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsInPlan.getPlanTypeId().toString()); diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java index 3494801..dc0e3f5 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java @@ -41,7 +41,7 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService { * @return 入库计划 */ @Override - public WmsInPlan selectWmsInPlanByPlanId(String planId) { + public WmsInPlan selectWmsInPlanByPlanId(Long planId) { WmsInPlan wmsInPlan = wmsInPlanMapper.selectWmsInPlanByPlanId(planId); List wmsInPlanDetailsList = new ArrayList<>(); wmsInPlan.getWmsInPlanDetailsList().forEach(detail -> { @@ -143,7 +143,7 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService { } if (!list.isEmpty()) { wmsInPlanMapper.batchWmsInPlanDetails(list); - WmsInPlan wmsInPlan1 = selectWmsInPlanByPlanId(planId.toString()); + WmsInPlan wmsInPlan1 = selectWmsInPlanByPlanId(planId); List wmsInPlanDetailsList1 = wmsInPlan1.getWmsInPlanDetailsList(); for (int i = 0; i < list.size(); i++) { List wmsInPlanDetailEntityList = list.get(i).getWmsInPlanDetailEntityList();