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