合并ext-dev到test分支;统一pojo

yun-zuoyi
administrator 1 year ago
parent 3ccf4d034e
commit c5f412fae8

@ -85,6 +85,10 @@ public class MesStateMachineStatus extends BaseBean implements Serializable {
@ApiParam("是否初始化") @ApiParam("是否初始化")
private Integer isInit = 1; private Integer isInit = 1;
@Column(name = "TRIGGER_GUIDE_STEP")
@ApiParam("默认触发引导工步")
private String triggerGuideStep;
@Transient @Transient
@ApiParam("流程代码") @ApiParam("流程代码")
private String routeCode; private String routeCode;
@ -139,4 +143,27 @@ public class MesStateMachineStatus extends BaseBean implements Serializable {
this.processCode = processCode; this.processCode = processCode;
} }
public MesStateMachineStatus(Long id, String smCode, String statusCode, String nextStatus, String statusName, String nextStatusName, Integer triggerType,
String triggerEvent, String triggerWhere, String triggerGuideStep, Long triggerAmgId, Long inAmgId, Long outAmgId, Integer statusType, Integer seq,
Integer isInit, String routeCode, String processCode) {
this.id = id;
this.smCode = smCode;
this.statusCode = statusCode;
this.nextStatus = nextStatus;
this.statusName = statusName;
this.nextStatusName = nextStatusName;
this.triggerType = triggerType;
this.triggerEvent = triggerEvent;
this.triggerWhere = triggerWhere;
this.triggerGuideStep = triggerGuideStep;
this.triggerAmgId = triggerAmgId;
this.inAmgId = inAmgId;
this.outAmgId = outAmgId;
this.statusType = statusType;
this.seq = seq;
this.isInit = isInit;
this.routeCode = routeCode;
this.processCode = processCode;
}
} }

@ -3,9 +3,11 @@ package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.MesPcnEnumUtil;
import cn.estsh.i3plus.pojo.mes.bean.MesStateMachineStatus; import cn.estsh.i3plus.pojo.mes.bean.MesStateMachineStatus;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import org.springframework.util.CollectionUtils;
import java.io.Serializable; import java.io.Serializable;
import java.util.HashMap; import java.util.HashMap;
@ -135,6 +137,12 @@ public class StationRequestBean implements Serializable {
@ApiParam("工位参数") @ApiParam("工位参数")
private Map<String, String> wcpcMap; private Map<String, String> wcpcMap;
@ApiParam("fsm参数")
private Map<String, String> fsmCfgMap;
@ApiParam("fsm参数key")
private String prodRouteOptParamKey;
@ApiParam("生产主队列编号") @ApiParam("生产主队列编号")
private String orderNo; private String orderNo;
@ -238,24 +246,28 @@ public class StationRequestBean implements Serializable {
return "StationRequestBean{" + return "StationRequestBean{" +
"scanInfo='" + scanInfo + '\'' + "scanInfo='" + scanInfo + '\'' +
", serialNumber='" + serialNumber + '\'' + ", serialNumber='" + serialNumber + '\'' +
", productSn='" + productSn + '\'' +
", partNo='" + partNo + '\'' + ", partNo='" + partNo + '\'' +
", pptCode='" + pptCode + '\'' +
", organizeCode='" + organizeCode + '\'' + ", organizeCode='" + organizeCode + '\'' +
", organizeName='" + organizeName + '\'' +
", workCenterCode='" + workCenterCode + '\'' + ", workCenterCode='" + workCenterCode + '\'' +
", workCellCode='" + workCellCode + '\'' + ", workCellCode='" + workCellCode + '\'' +
", routeCode='" + routeCode + '\'' + ", routeCode='" + routeCode + '\'' +
", processCode='" + processCode + '\'' + ", processCode='" + processCode + '\'' +
", smCode='" + smCode + '\'' +
", prodRouteOptParamKey='" + prodRouteOptParamKey + '\'' +
", clientInfo='" + clientInfo + '\'' + ", clientInfo='" + clientInfo + '\'' +
", userInfo='" + userInfo + '\'' + ", userInfo='" + userInfo + '\'' +
", buttonCode='" + buttonCode + '\'' + ", buttonCode='" + buttonCode + '\'' +
", stepCode='" + stepCode + '\'' + ", stepCode='" + stepCode + '\'' +
", busiType='" + busiType + '\'' + ", busiType='" + busiType + '\'' +
", forceJumpProcess='" + forceJumpProcess + '\'' +
", workOrderNo='" + workOrderNo + '\'' + ", workOrderNo='" + workOrderNo + '\'' +
", tray='" + tray + '\'' + ", packageNo='" + packageNo + '\'' +
", finishCount=" + finishCount + ", cacheSourceClass='" + cacheSourceClass + '\'' +
", packageNo=" + packageNo + ", dataMap=" + (!CollectionUtils.isEmpty(dataMap) ? JSONObject.toJSONString(dataMap) : "[]") +
", createDatetime=" + createDatetime + ", curFsmState=" + (null != curFsmState ? JSONObject.toJSONString(curFsmState) : "[]") +
", cacheSourceClass=" + cacheSourceClass +
'}'; '}';
} }
} }

@ -27,6 +27,8 @@ public class StepResult<T> {
private String nextTriggerEvent; private String nextTriggerEvent;
private Object obj;
public static StepResult getNonComplete() { public static StepResult getNonComplete() {
return new StepResult(false, ""); return new StepResult(false, "");
} }
@ -154,4 +156,31 @@ public class StepResult<T> {
this.msg = msg; this.msg = msg;
this.stationRequestBean = stationRequestBean; this.stationRequestBean = stationRequestBean;
} }
public StepResult isCompleted(boolean isCompleted) {
this.isCompleted = isCompleted;
return this;
}
public StepResult msg(String msg) {
this.msg = msg;
return this;
}
public StepResult nextTriggerEvent(String nextTriggerEvent) {
this.nextTriggerEvent = nextTriggerEvent;
return this;
}
public StepResult data(T t) {
this.data = t;
return this;
}
public StepResult obj(Object obj) {
this.obj = obj;
return this;
}
} }

@ -10,6 +10,7 @@ import cn.estsh.i3plus.pojo.mes.bean.template.BasImportTemplate;
import cn.estsh.i3plus.pojo.mes.bean.template.BasImportTemplateDetails; import cn.estsh.i3plus.pojo.mes.bean.template.BasImportTemplateDetails;
import cn.estsh.i3plus.pojo.mes.dbinterface.MesInterfaceDataMapper; import cn.estsh.i3plus.pojo.mes.dbinterface.MesInterfaceDataMapper;
import cn.estsh.i3plus.pojo.mes.engine.script.EngineScriptPersistence; import cn.estsh.i3plus.pojo.mes.engine.script.EngineScriptPersistence;
import cn.estsh.i3plus.pojo.mes.engine.script.EngineScriptPersistenceHistory;
import cn.estsh.i3plus.pojo.mes.model.MgnPaintPolishingReportModel; import cn.estsh.i3plus.pojo.mes.model.MgnPaintPolishingReportModel;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
@ -24,20 +25,30 @@ import java.util.List;
* @Modify: * @Modify:
**/ **/
public class MesHqlPack { public class MesHqlPack {
public static DdlPackBean packHqlScriptHistory(EngineScriptPersistenceHistory history) {
/** DdlPackBean packBean = new DdlPackBean();
* DdlPreparedPack.getStringEqualPack(history.getScriptNo(), "scriptNo", packBean);
* getStringBuilderPack(history, packBean);
* @param organizeCode return packBean;
* @return }
*/
public static DdlPackBean getAllBaseData(String organizeCode) { public static DdlPackBean getAllBaseData(String organizeCode) {
DdlPackBean packBean = new DdlPackBean(); DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(organizeCode, "organizeCode", packBean); DdlPreparedPack.getStringEqualPack(organizeCode, "organizeCode", packBean);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_DEAL.NO.getValue(), "isDeleted", packBean); DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_DEAL.NO.getValue(), "isDeleted", packBean);
return packBean; return packBean;
} }
public static DdlPackBean packEngineScriptPersistence(EngineScriptPersistence scriptPersistence) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(scriptPersistence.getScriptNo(), "scriptNo", packBean);
DdlPreparedPack.getStringRightLikerPack(scriptPersistence.getScriptName(), "scriptName", packBean);
DdlPreparedPack.getNumEqualPack(scriptPersistence.getScriptType(), "scriptType", packBean);
DdlPreparedPack.getNumEqualPack(scriptPersistence.getLanguageType(), "languageType", packBean);
getStringBuilderPack(scriptPersistence, packBean);
DdlPreparedPack.getOrderByPack(new Object[]{2}, new String[]{"createDatetime"}, packBean);
return packBean;
}
public static DdlPackBean getMesPcnByCondition(MesPcn mesPcn, String organizeCode) { public static DdlPackBean getMesPcnByCondition(MesPcn mesPcn, String organizeCode) {
DdlPackBean packBean = getAllBaseData(organizeCode); DdlPackBean packBean = getAllBaseData(organizeCode);
if (!StringUtils.isEmpty(mesPcn.getConnectIp())) { if (!StringUtils.isEmpty(mesPcn.getConnectIp())) {
@ -3847,17 +3858,4 @@ public class MesHqlPack {
DdlPreparedPack.getNumEqualPack(mesFailureModeParts.getIsValid(), "isValid", packBean); DdlPreparedPack.getNumEqualPack(mesFailureModeParts.getIsValid(), "isValid", packBean);
return packBean; return packBean;
} }
public static DdlPackBean packEngineScriptPersistence(EngineScriptPersistence scriptPersistence) {
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(scriptPersistence.getScriptNo(), "scriptNo", packBean);
DdlPreparedPack.getStringRightLikerPack(scriptPersistence.getScriptName(), "scriptName", packBean);
DdlPreparedPack.getNumEqualPack(scriptPersistence.getScriptType(), "scriptType", packBean);
DdlPreparedPack.getNumEqualPack(scriptPersistence.getLanguageType(), "languageType", packBean);
getStringBuilderPack(scriptPersistence, packBean);
DdlPreparedPack.getOrderByPack(new Object[]{2}, new String[]{"createDatetime"}, packBean);
return packBean;
}
} }

Loading…
Cancel
Save