refactor: 设置lombok

This commit is contained in:
Kelvin 2025-01-03 16:07:33 +08:00
parent fbe60c4e25
commit f5908f1ce4
3 changed files with 38 additions and 51 deletions

View File

@ -12,6 +12,7 @@ import com.ktg.mes.wm.domain.WmStorageArea;
import com.ktg.mes.wm.mapper.WmStorageAreaMapper;
import com.ktg.mes.wm.mapper.WmStorageLocationMapper;
import com.ktg.mes.wm.mapper.WmWarehouseMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -28,39 +29,17 @@ import java.util.concurrent.atomic.AtomicInteger;
* @date 2024-11-01
*/
@Service
@RequiredArgsConstructor
public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
@Autowired
private WmsOutPlanMapper wmsOutPlanMapper;
@Autowired
private WmsOutPlanDetailEntityMapper wmsOutPlanDetailEntityMapper;
@Autowired
private WmsOutTaskMapper wmsOutTaskMapper;
@Autowired
private BaseKnifeMapper baseKnifeMapper;
@Autowired
private WmsBusinessTypeMapper wmsBusinessTypeMapper;
@Autowired
private MdItemMapper mdItemMapper;
@Autowired
private AP0AEMapper ap0AEMapper;
@Autowired
private WmWarehouseMapper wmWarehouseMapper;
@Autowired
private WmStorageLocationMapper wmStorageLocationMapper;
@Autowired
private WmStorageAreaMapper wmStorageAreaMapper;
@Autowired
private InventoryAdjustmentMapper inventoryAdjustmentMapper;
private final WmsOutPlanMapper wmsOutPlanMapper;
private final WmsOutPlanDetailEntityMapper wmsOutPlanDetailEntityMapper;
private final WmsOutTaskMapper wmsOutTaskMapper;
private final BaseKnifeMapper baseKnifeMapper;
private final WmsBusinessTypeMapper wmsBusinessTypeMapper;
private final MdItemMapper mdItemMapper;
private final AP0AEMapper ap0AEMapper;
private final WmStorageAreaMapper wmStorageAreaMapper;
private final InventoryAdjustmentMapper inventoryAdjustmentMapper;
/**
* 查询出库计划管理

View File

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

View File

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