|
|
|
@ -4,6 +4,7 @@ import cn.estsh.i3plus.ext.mes.pcn.api.busi.IMesProductionCustomContextStepServi
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.api.busi.IMesProductionDispatchContextStepService;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.api.busi.IMesProductionProcessContextStepService;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.pojo.util.MesPcnExtConstWords;
|
|
|
|
|
import cn.estsh.i3plus.mes.pcn.actor.shipping.dispatch.IFsmCommonService;
|
|
|
|
|
import cn.estsh.i3plus.mes.pcn.serviceimpl.fsm.process.BaseProcessMonitorService;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.codemaker.SnowflakeIdMaker;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil;
|
|
|
|
@ -27,18 +28,15 @@ public class MesProductionProcessMonitorService extends BaseProcessMonitorServic
|
|
|
|
|
private IMesProductionCustomContextStepService productionCustomContextStepService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IFsmCommonService fsmCommonService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private SnowflakeIdMaker snowflakeIdMaker;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean doProcessStart(StationRequestBean requestBean) {
|
|
|
|
|
|
|
|
|
|
Long mouldId = snowflakeIdMaker.nextId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Long mouldId = snowflakeIdMaker.nextId();
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
@ -46,6 +44,7 @@ public class MesProductionProcessMonitorService extends BaseProcessMonitorServic
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean doProcessComplete(StationRequestBean requestBean) {
|
|
|
|
|
//执行跳过工序二开实现逻辑
|
|
|
|
|
doJumpProcess(requestBean);
|
|
|
|
|
//发送工序完成音
|
|
|
|
|
this.sendMessage(requestBean, new StationResultBean().resultObj(MesPcnExtConstWords.PROCESS_COMPLETE).busiType(MesPcnEnumUtil.STATION_BUSI_TYPE.CUSTOM_COMPONENT.getValue()).dataType(MesPcnEnumUtil.STATION_DATA_TYPE.SOUND.getValue()));
|
|
|
|
@ -58,10 +57,18 @@ public class MesProductionProcessMonitorService extends BaseProcessMonitorServic
|
|
|
|
|
productionDispatchContextStepService.doFlushProductionDispatchContext(requestBean);
|
|
|
|
|
//清除工步客制化区域数据【装配件清单】
|
|
|
|
|
this.sendMessage(requestBean, new StationResultBean().busiType(MesPcnEnumUtil.STATION_BUSI_TYPE.STEP_CUSTOM_CONTENT.getValue()).dataType(MesPcnEnumUtil.STATION_DATA_TYPE.TABLES.getValue()));
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//清除上下文中的所有基础数据 //TODO 临时增加 后面删掉
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean doOffLine(StationRequestBean requestBean) {
|
|
|
|
|
//删除当前状态点
|
|
|
|
|
fsmCommonService.doFlushCache(requestBean);
|
|
|
|
|
//执行跳过工序二开实现逻辑
|
|
|
|
|
doJumpProcess(requestBean);
|
|
|
|
|
//清除上下文中的所有基础数据
|
|
|
|
|
productionProcessContextStepService.doFlushProductionProcessContext(requestBean);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|