diff --git a/ktg-common/pom.xml b/ktg-common/pom.xml
index 68aa372..7fc7542 100644
--- a/ktg-common/pom.xml
+++ b/ktg-common/pom.xml
@@ -157,6 +157,12 @@
2.2.9
+
+ org.projectlombok
+ lombok
+ annotationProcessor
+
+
\ No newline at end of file
diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/UcmCtBaseMapper.java b/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/UcmCtBaseMapper.java
index af772c5..52791d7 100644
--- a/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/UcmCtBaseMapper.java
+++ b/ktg-mes/src/main/java/com/ktg/mes/wm/mapper/UcmCtBaseMapper.java
@@ -3,6 +3,7 @@ package com.ktg.mes.wm.mapper;
import java.util.List;
import com.ktg.mes.wm.domain.UcmCtBase;
import com.ktg.mes.wm.domain.UcmCtMaterial;
+import org.apache.ibatis.annotations.Mapper;
/**
* 料箱管理Mapper接口
@@ -10,7 +11,8 @@ import com.ktg.mes.wm.domain.UcmCtMaterial;
* @author yinjinlu
* @date 2024-10-31
*/
-public interface UcmCtBaseMapper
+@Mapper
+public interface UcmCtBaseMapper
{
/**
* 查询料箱管理
@@ -20,6 +22,14 @@ public interface UcmCtBaseMapper
*/
public UcmCtBase selectUcmCtBaseByCtBaseId(String ctBaseId);
+ /**
+ * 查询料箱管理
+ *
+ * @param code 物料code
+ * @return 料箱管理
+ */
+ public UcmCtBase selectUcmCtBaseByCode(String code);
+
/**
* 查询料箱管理列表
*
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 aba0497..40bbb17 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
@@ -2,6 +2,7 @@ package com.ktg.mes.wm.mapper;
import java.util.List;
import com.ktg.mes.wm.domain.WmsInPlanDetailEntity;
+import org.apache.ibatis.annotations.Mapper;
/**
* 入库计划明细实体Mapper接口
@@ -9,7 +10,8 @@ import com.ktg.mes.wm.domain.WmsInPlanDetailEntity;
* @author yinjinlu
* @date 2024-11-05
*/
-public interface WmsInPlanDetailEntityMapper
+@Mapper
+public interface WmsInPlanDetailEntityMapper
{
/**
* 查询入库计划明细实体
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 b5d9a65..0374056 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
@@ -3,6 +3,7 @@ package com.ktg.mes.wm.mapper;
import java.util.List;
import com.ktg.mes.wm.domain.WmsInPlan;
import com.ktg.mes.wm.domain.WmsInPlanDetails;
+import org.apache.ibatis.annotations.Mapper;
/**
* 入库计划Mapper接口
@@ -10,7 +11,8 @@ import com.ktg.mes.wm.domain.WmsInPlanDetails;
* @author yinjinlu
* @date 2024-10-31
*/
-public interface WmsInPlanMapper
+@Mapper
+public interface WmsInPlanMapper
{
/**
* 查询入库计划
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 11a9180..3494801 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
@@ -5,6 +5,7 @@ import java.util.List;
import com.ktg.common.utils.DateUtils;
import com.ktg.mes.wm.domain.WmsInPlanDetailEntity;
import com.ktg.mes.wm.mapper.WmsInPlanDetailEntityMapper;
+import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -24,12 +25,14 @@ import com.ktg.mes.wm.service.IWmsInPlanService;
* @date 2024-10-31
*/
@Service
+@RequiredArgsConstructor
public class WmsInPlanServiceImpl implements IWmsInPlanService {
- @Autowired
- private WmsInPlanMapper wmsInPlanMapper;
-
- @Autowired
- private WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper;
+ private final WmsInPlanMapper wmsInPlanMapper;
+ private final WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper;
+ private final UcmCtBaseMapper ucmCtBaseMapper;
+ private final BaseKnifeServiceImpl baseKnifeService;
+ private final IMdItemService mdItemService;
+ private final WmStorageAreaServiceImpl wmStorageAreaService;
/**
* 查询入库计划