refactor: 设置lombok

This commit is contained in:
Kelvin 2025-01-07 14:19:01 +08:00
parent 1de159ff6c
commit ebbf10d608
3 changed files with 35 additions and 31 deletions

View File

@ -1,8 +1,10 @@
package com.ktg.mes.wm.mapper; package com.ktg.mes.wm.mapper;
import java.util.List; import java.util.List;
import com.ktg.mes.wm.domain.WmStorageLocation; import com.ktg.mes.wm.domain.WmStorageLocation;
import com.ktg.mes.wm.domain.vo.WmStorageLocationVo; import com.ktg.mes.wm.domain.vo.WmStorageLocationVo;
import org.apache.ibatis.annotations.Mapper;
/** /**
* 库区设置Mapper接口 * 库区设置Mapper接口
@ -10,8 +12,8 @@ import com.ktg.mes.wm.domain.vo.WmStorageLocationVo;
* @author yinjinlu * @author yinjinlu
* @date 2022-05-07 * @date 2022-05-07
*/ */
public interface WmStorageLocationMapper @Mapper
{ public interface WmStorageLocationMapper {
/** /**
* 查询库区设置 * 查询库区设置
* *
@ -30,6 +32,7 @@ public interface WmStorageLocationMapper
/** /**
* 根据库区编码查询库区 * 根据库区编码查询库区
*
* @param locationCode * @param locationCode
* @return * @return
*/ */
@ -53,8 +56,8 @@ public interface WmStorageLocationMapper
public WmStorageLocation checkLocationCodeUnique(WmStorageLocation wmStorageLocation); public WmStorageLocation checkLocationCodeUnique(WmStorageLocation wmStorageLocation);
public WmStorageLocation checkLocationNameUnique(WmStorageLocation wmStorageLocation);
public WmStorageLocation checkLocationNameUnique(WmStorageLocation wmStorageLocation);
/** /**
@ -91,6 +94,7 @@ public interface WmStorageLocationMapper
/** /**
* 根据仓库删除对应的库区 * 根据仓库删除对应的库区
*
* @param warehouseId * @param warehouseId
* @return * @return
*/ */

View File

@ -1,7 +1,9 @@
package com.ktg.mes.wm.mapper; package com.ktg.mes.wm.mapper;
import java.util.List; import java.util.List;
import com.ktg.mes.wm.domain.WmWarehouse; import com.ktg.mes.wm.domain.WmWarehouse;
import org.apache.ibatis.annotations.Mapper;
/** /**
* 仓库设置Mapper接口 * 仓库设置Mapper接口
@ -9,8 +11,8 @@ import com.ktg.mes.wm.domain.WmWarehouse;
* @author yinjinlu * @author yinjinlu
* @date 2022-05-07 * @date 2022-05-07
*/ */
public interface WmWarehouseMapper @Mapper
{ public interface WmWarehouseMapper {
/** /**
* 查询仓库设置 * 查询仓库设置
* *
@ -21,6 +23,7 @@ public interface WmWarehouseMapper
/** /**
* 根据编码查询仓库 * 根据编码查询仓库
*
* @param warehouseCdoe * @param warehouseCdoe
* @return * @return
*/ */
@ -38,6 +41,7 @@ public interface WmWarehouseMapper
public List<WmWarehouse> getTreeList(); public List<WmWarehouse> getTreeList();
public WmWarehouse checkWarehouseCodeUnique(WmWarehouse wmWarehouse); public WmWarehouse checkWarehouseCodeUnique(WmWarehouse wmWarehouse);
public WmWarehouse checkWarehouseNameUnique(WmWarehouse wmWarehouse); public WmWarehouse checkWarehouseNameUnique(WmWarehouse wmWarehouse);
/** /**

View File

@ -7,6 +7,7 @@ import com.ktg.mes.md.domain.WmsBusinessType;
import com.ktg.mes.md.mapper.WmsBusinessTypeMapper; import com.ktg.mes.md.mapper.WmsBusinessTypeMapper;
import com.ktg.mes.wm.domain.*; import com.ktg.mes.wm.domain.*;
import com.ktg.mes.wm.mapper.*; import com.ktg.mes.wm.mapper.*;
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;
import com.ktg.mes.wm.service.IWmsInPlanDetailEntityService; import com.ktg.mes.wm.service.IWmsInPlanDetailEntityService;
@ -18,19 +19,14 @@ import com.ktg.mes.wm.service.IWmsInPlanDetailEntityService;
* @date 2024-11-05 * @date 2024-11-05
*/ */
@Service @Service
@RequiredArgsConstructor
public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityService { public class WmsInPlanDetailEntityServiceImpl implements IWmsInPlanDetailEntityService {
@Autowired private final WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper;
private WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper; private final WmsInPlanMapper wmsInPlanMapper;
@Autowired private final WmsBusinessTypeMapper wmsBusinessTypeMapper;
private WmsInPlanMapper wmsInPlanMapper; private final WmStorageAreaMapper wmStorageAreaMapper;
@Autowired private final WmStorageLocationMapper wmStorageLocationMapper;
private WmsBusinessTypeMapper wmsBusinessTypeMapper; private final WmWarehouseMapper wmWarehouseMapper;
@Autowired
private WmStorageAreaMapper wmStorageAreaMapper;
@Autowired
private WmStorageLocationMapper wmStorageLocationMapper;
@Autowired
private WmWarehouseMapper wmWarehouseMapper;
/** /**
* 查询入库计划明细实体 * 查询入库计划明细实体