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();