优化生产保存接口-获得生产单数据源接口逻辑修改-新增排单接口逻辑修改

This commit is contained in:
liuzhaotian
2024-06-07 18:18:57 +08:00
parent bcbc2d3ab6
commit 6d5b232d7a
36 changed files with 1218 additions and 262 deletions
@@ -2,6 +2,7 @@ package com.cf.imes.module.manage.service.process;
import cn.hutool.core.bean.BeanUtil;
import com.cf.imes.framework.common.enums.ProcessProcessingTypeEnum;
import com.cf.imes.framework.common.enums.ProcessingStatusEnum;
import com.cf.imes.framework.common.exception.ServiceException;
import com.cf.imes.framework.common.exception.util.ServiceExceptionUtil;
@@ -127,7 +128,7 @@ public class ProductionProcessServiceImpl implements ProductionProcessService {
}
// 判断生产单工序的状态是否为组件加工
if(processStepStatuses.getType() == 7){
if(processStepStatuses.getType().equals(ProcessProcessingTypeEnum.COMPONENTPROCESSING.getNumber())){
processStepItemMapper.updateStemStatus(reqVo.getProcessStepId(),reqVo.getName());
@@ -203,7 +204,7 @@ public class ProductionProcessServiceImpl implements ProductionProcessService {
public List<OrderPlateReqVO> selectPlate(ProcessPlateReqVO reqVO) {
if(reqVO.getProcessType() == 7){
if(reqVO.getProcessType().equals(ProcessProcessingTypeEnum.COMPONENTPROCESSING.getNumber())){
// 等于 7(组件加工) ,根据明细ID查询对应的柜体ID,再传入方法查询对应的板材信息
List<OrderPlateReqVO> plateDetails = processStepItemMapper.selectBodyIds(reqVO.getProcessStepId(),reqVO.getName());