feat: 自动装配

This commit is contained in:
Kelvin 2024-12-05 15:37:52 +08:00
parent de7aa40751
commit fbc5b94956
5 changed files with 31 additions and 8 deletions

View File

@ -157,6 +157,12 @@
<version>2.2.9</version> <version>2.2.9</version>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>annotationProcessor</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -3,6 +3,7 @@ package com.ktg.mes.wm.mapper;
import java.util.List; import java.util.List;
import com.ktg.mes.wm.domain.UcmCtBase; import com.ktg.mes.wm.domain.UcmCtBase;
import com.ktg.mes.wm.domain.UcmCtMaterial; import com.ktg.mes.wm.domain.UcmCtMaterial;
import org.apache.ibatis.annotations.Mapper;
/** /**
* 料箱管理Mapper接口 * 料箱管理Mapper接口
@ -10,6 +11,7 @@ import com.ktg.mes.wm.domain.UcmCtMaterial;
* @author yinjinlu * @author yinjinlu
* @date 2024-10-31 * @date 2024-10-31
*/ */
@Mapper
public interface UcmCtBaseMapper public interface UcmCtBaseMapper
{ {
/** /**
@ -20,6 +22,14 @@ public interface UcmCtBaseMapper
*/ */
public UcmCtBase selectUcmCtBaseByCtBaseId(String ctBaseId); public UcmCtBase selectUcmCtBaseByCtBaseId(String ctBaseId);
/**
* 查询料箱管理
*
* @param code 物料code
* @return 料箱管理
*/
public UcmCtBase selectUcmCtBaseByCode(String code);
/** /**
* 查询料箱管理列表 * 查询料箱管理列表
* *

View File

@ -2,6 +2,7 @@ package com.ktg.mes.wm.mapper;
import java.util.List; import java.util.List;
import com.ktg.mes.wm.domain.WmsInPlanDetailEntity; import com.ktg.mes.wm.domain.WmsInPlanDetailEntity;
import org.apache.ibatis.annotations.Mapper;
/** /**
* 入库计划明细实体Mapper接口 * 入库计划明细实体Mapper接口
@ -9,6 +10,7 @@ import com.ktg.mes.wm.domain.WmsInPlanDetailEntity;
* @author yinjinlu * @author yinjinlu
* @date 2024-11-05 * @date 2024-11-05
*/ */
@Mapper
public interface WmsInPlanDetailEntityMapper public interface WmsInPlanDetailEntityMapper
{ {
/** /**

View File

@ -3,6 +3,7 @@ package com.ktg.mes.wm.mapper;
import java.util.List; import java.util.List;
import com.ktg.mes.wm.domain.WmsInPlan; import com.ktg.mes.wm.domain.WmsInPlan;
import com.ktg.mes.wm.domain.WmsInPlanDetails; import com.ktg.mes.wm.domain.WmsInPlanDetails;
import org.apache.ibatis.annotations.Mapper;
/** /**
* 入库计划Mapper接口 * 入库计划Mapper接口
@ -10,6 +11,7 @@ import com.ktg.mes.wm.domain.WmsInPlanDetails;
* @author yinjinlu * @author yinjinlu
* @date 2024-10-31 * @date 2024-10-31
*/ */
@Mapper
public interface WmsInPlanMapper public interface WmsInPlanMapper
{ {
/** /**

View File

@ -5,6 +5,7 @@ import java.util.List;
import com.ktg.common.utils.DateUtils; import com.ktg.common.utils.DateUtils;
import com.ktg.mes.wm.domain.WmsInPlanDetailEntity; import com.ktg.mes.wm.domain.WmsInPlanDetailEntity;
import com.ktg.mes.wm.mapper.WmsInPlanDetailEntityMapper; import com.ktg.mes.wm.mapper.WmsInPlanDetailEntityMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -24,12 +25,14 @@ import com.ktg.mes.wm.service.IWmsInPlanService;
* @date 2024-10-31 * @date 2024-10-31
*/ */
@Service @Service
@RequiredArgsConstructor
public class WmsInPlanServiceImpl implements IWmsInPlanService { public class WmsInPlanServiceImpl implements IWmsInPlanService {
@Autowired private final WmsInPlanMapper wmsInPlanMapper;
private WmsInPlanMapper wmsInPlanMapper; private final WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper;
private final UcmCtBaseMapper ucmCtBaseMapper;
@Autowired private final BaseKnifeServiceImpl baseKnifeService;
private WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper; private final IMdItemService mdItemService;
private final WmStorageAreaServiceImpl wmStorageAreaService;
/** /**
* 查询入库计划 * 查询入库计划