From 65969a44ec8d21756c0c63c71134b4dbadb9c1d6 Mon Sep 17 00:00:00 2001 From: LJW Date: Thu, 7 Nov 2024 16:13:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E5=AE=9E=E4=BD=93):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92=E6=98=8E?= =?UTF-8?q?=E7=BB=86ID=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/wm/mapper/WmsInPlanDetailEntityMapper.java | 7 +++++++ .../mes/wm/service/IWmsInPlanDetailEntityService.java | 8 ++++++++ .../impl/WmsInPlanDetailEntityServiceImpl.java | 11 +++++++++++ .../mapper/wm/WmsInPlanDetailEntityMapper.xml | 5 +++++ 4 files changed, 31 insertions(+) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanDetailEntityMapper.java b/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanDetailEntityMapper.java index 206e324..345315a 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanDetailEntityMapper.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/WmsInPlanDetailEntityMapper.java @@ -19,6 +19,13 @@ public interface WmsInPlanDetailEntityMapper */ public WmsInPlanDetailEntity selectWmsInPlanDetailEntityById(Long id); + /** + * 根据入库计划明细 id查询 + * @param id 入库计划明细主键 + * @return 入库计划明细实体 + */ + public WmsInPlanDetailEntity selectWmsInPlanDetailEntityByPlanDetailsId(Long id); + /** * 查询入库计划明细实体列表 * diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanDetailEntityService.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanDetailEntityService.java index 845aafb..b2ca4e7 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanDetailEntityService.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/IWmsInPlanDetailEntityService.java @@ -19,6 +19,14 @@ public interface IWmsInPlanDetailEntityService */ public WmsInPlanDetailEntity selectWmsInPlanDetailEntityById(Long id); + /** + * 根据入库计划明细ID 查询入库计划明细实体 + * + * @param id 入库计划明细主键 + * @return 入库计划明细实体 + */ + public WmsInPlanDetailEntity selectWmsInPlanDetailEntityByPlanDetailsId(Long id); + /** * 查询入库计划明细实体列表 * 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 335275b..104938d 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 @@ -32,6 +32,17 @@ public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityS return wmsInPlanDetailEntityMapper.selectWmsInPlanDetailEntityById(id); } + /** + * 根据入库计划明细ID 查询入库计划明细实体 + * + * @param id 入库计划明细主键 + * @return 入库计划明细实体 + */ + @Override + public WmsInPlanDetailEntity selectWmsInPlanDetailEntityByPlanDetailsId(Long id) { + return wmsInPlanDetailEntityMapper.selectWmsInPlanDetailEntityByPlanDetailsId(id); + } + /** * 查询入库计划明细实体列表 * diff --git a/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml b/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml index 75eb5a3..e542da5 100644 --- a/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml +++ b/ktg-mes/src/main/resources/mapper/wm/WmsInPlanDetailEntityMapper.xml @@ -52,6 +52,11 @@ where ID = #{id} + + insert into WMS_IN_PLAN_DETAIL_ENTITY