refactor(组刀任务): 设置lombok
This commit is contained in:
parent
039b84258b
commit
c10fd69aa3
@ -12,6 +12,7 @@ import com.ktg.mes.md.mapper.*;
|
||||
import com.ktg.mes.wm.domain.*;
|
||||
import com.ktg.mes.wm.mapper.*;
|
||||
import com.ktg.mes.wm.service.IWmsInPlanService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ktg.mes.wm.service.IWmsZdTaskService;
|
||||
@ -28,49 +29,21 @@ import static org.apache.commons.lang3.SystemUtils.getUserName;
|
||||
* @date 2024-11-01
|
||||
*/
|
||||
@Service
|
||||
public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
{
|
||||
@Autowired
|
||||
private BaseKnifeMapper baseKnifeMapper;
|
||||
|
||||
@Autowired
|
||||
private BomRouteMapper bomRouteMapper;
|
||||
|
||||
@Autowired
|
||||
private MdItemMapper mdItemMapper;
|
||||
|
||||
@Autowired
|
||||
private BaseTechnologyBomMapper baseTechnologyBomMapper;
|
||||
|
||||
@Autowired
|
||||
private WmsZdTaskMapper wmsZdTaskMapper;
|
||||
|
||||
@Autowired
|
||||
private WmStorageAreaMapper wmStorageAreaMapper;
|
||||
|
||||
@Autowired
|
||||
private IWmsInPlanService wmsInPlanService;
|
||||
|
||||
@Autowired
|
||||
private WmsInTaskMapper wmsInTaskMapper;
|
||||
|
||||
@Autowired
|
||||
private WmsOutPlanMapper wmsOutPlanMapper;
|
||||
|
||||
@Autowired
|
||||
private WmsOutPlanDetailEntityMapper wmsOutPlanDetailEntityMapper;
|
||||
|
||||
@Autowired
|
||||
private WmsOutTaskMapper wmsOutTaskMapper;
|
||||
|
||||
@Autowired
|
||||
private ProductionArrangementsMapper productionArrangementsMapper;
|
||||
|
||||
@Autowired
|
||||
private BaseKnifeLockedMapper baseKnifeLockedMapper;
|
||||
|
||||
@Autowired
|
||||
private MyConfig myConfig;
|
||||
@RequiredArgsConstructor
|
||||
public class WmsZdTaskServiceImpl implements IWmsZdTaskService {
|
||||
private final BaseKnifeMapper baseKnifeMapper;
|
||||
private final BomRouteMapper bomRouteMapper;
|
||||
private final MdItemMapper mdItemMapper;
|
||||
private final BaseTechnologyBomMapper baseTechnologyBomMapper;
|
||||
private final WmsZdTaskMapper wmsZdTaskMapper;
|
||||
private final WmStorageAreaMapper wmStorageAreaMapper;
|
||||
private final IWmsInPlanService wmsInPlanService;
|
||||
private final WmsInTaskMapper wmsInTaskMapper;
|
||||
private final WmsOutPlanMapper wmsOutPlanMapper;
|
||||
private final WmsOutPlanDetailEntityMapper wmsOutPlanDetailEntityMapper;
|
||||
private final WmsOutTaskMapper wmsOutTaskMapper;
|
||||
private final ProductionArrangementsMapper productionArrangementsMapper;
|
||||
private final BaseKnifeLockedMapper baseKnifeLockedMapper;
|
||||
|
||||
/**
|
||||
* 查询组装任务
|
||||
@ -79,8 +52,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
* @return 组装任务
|
||||
*/
|
||||
@Override
|
||||
public WmsZdTask selectWmsZdTaskByWmsZdTaskId(String wmsZdTaskId)
|
||||
{
|
||||
public WmsZdTask selectWmsZdTaskByWmsZdTaskId(String wmsZdTaskId) {
|
||||
return wmsZdTaskMapper.selectWmsZdTaskByWmsZdTaskId(wmsZdTaskId);
|
||||
}
|
||||
|
||||
@ -91,8 +63,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
* @return 组装任务
|
||||
*/
|
||||
@Override
|
||||
public List<WmsZdTask> selectWmsZdTaskList(WmsZdTask wmsZdTask)
|
||||
{
|
||||
public List<WmsZdTask> selectWmsZdTaskList(WmsZdTask wmsZdTask) {
|
||||
return wmsZdTaskMapper.selectWmsZdTaskList(wmsZdTask);
|
||||
}
|
||||
|
||||
@ -103,8 +74,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWmsZdTask(WmsZdTask wmsZdTask)
|
||||
{
|
||||
public int insertWmsZdTask(WmsZdTask wmsZdTask) {
|
||||
wmsZdTask.setCreateTime(DateUtils.getNowDate());
|
||||
wmsZdTask.setCreateBy(getUserName());
|
||||
return wmsZdTaskMapper.insertWmsZdTask(wmsZdTask);
|
||||
@ -117,8 +87,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWmsZdTask(WmsZdTask wmsZdTask)
|
||||
{
|
||||
public int updateWmsZdTask(WmsZdTask wmsZdTask) {
|
||||
wmsZdTask.setUpdateTime(DateUtils.getNowDate());
|
||||
wmsZdTask.setUpdateBy(getUserName());
|
||||
return wmsZdTaskMapper.updateWmsZdTask(wmsZdTask);
|
||||
@ -131,8 +100,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsZdTaskByWmsZdTaskIds(String[] wmsZdTaskIds)
|
||||
{
|
||||
public int deleteWmsZdTaskByWmsZdTaskIds(String[] wmsZdTaskIds) {
|
||||
return wmsZdTaskMapper.deleteWmsZdTaskByWmsZdTaskIds(wmsZdTaskIds);
|
||||
}
|
||||
|
||||
@ -143,8 +111,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWmsZdTaskByWmsZdTaskId(String wmsZdTaskId)
|
||||
{
|
||||
public int deleteWmsZdTaskByWmsZdTaskId(String wmsZdTaskId) {
|
||||
return wmsZdTaskMapper.deleteWmsZdTaskByWmsZdTaskId(wmsZdTaskId);
|
||||
}
|
||||
|
||||
@ -383,7 +350,7 @@ public class WmsZdTaskServiceImpl implements IWmsZdTaskService
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
public String getProductRfid(Long itemId, int i){
|
||||
public String getProductRfid(Long itemId, int i) {
|
||||
MdItem mdItem = mdItemMapper.selectMdItemById(itemId);
|
||||
|
||||
// 获取最大的RFID 然后加1 : RFID为物料的编码加序号
|
||||
|
Loading…
Reference in New Issue
Block a user