工步调度业务完善

yun-zuoyi
jiajack 6 years ago
parent f333718801
commit 038484e7ac

@ -494,4 +494,81 @@ public class MesEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATION_BUSI_TYPE{
MESSAGE("message","返回信息"),
STEP_LIST("stepList","工步列表"),
STEP_CONTENT("stepContent","工步内容"),
MODULE_CONTENT("moduleContent","组件内容"),
TASK_COMPLETE("taskComplete","整个扫描完成");
private String value;
private String description;
STATION_BUSI_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (val.equals(values()[i].value) ) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATION_DATA_TYPE{
TABLE("table","表格"),
TEXT("text","正常文本"),
EXP_TEXT("exp_text","异常文本"),
IMAGE("image","图片"),
BUTTON("button","按钮");
private String value;
private String description;
STATION_DATA_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (val.equals(values()[i].value) ) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
@Data
public class AttrBean implements Serializable {
@ApiParam("属性名称")
private String attrName;
@ApiParam("属性名称别名")
private String attrNameAlias;
}

@ -0,0 +1,19 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
@Data
public class ButtonBean implements Serializable {
@ApiParam(value = "按钮名称")
private String buttonName;
// 执行类方法,sql,或者标记
@ApiParam(value = "执行内容")
private String methodContent;
@ApiParam(value = "按钮描述")
private String buttonDesc;
}

@ -47,7 +47,7 @@ public class StationRequestBean implements Serializable {
private String userInfo;
/**
* heartBit:scan
* doScan-doModule-,initModule-
*/
@ApiParam("业务类型")
private String busiType;

@ -6,6 +6,7 @@ import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @Description : bean
@ -15,23 +16,32 @@ import java.util.List;
* @Modify:
**/
@Data
public class StationResultBean implements Serializable {
public class StationResultBean<T> implements Serializable {
/**
* ,message:stepList:stepHtml
* ,message:stepList:stepContent
* moduleContent,taskComplete
*/
@ApiParam("数据类型")
private String flagType;
@ApiParam("业务类型")
private String busiType;
@ApiParam("是否错误信息")
private boolean error;
/**
*
* table-text-expText-button-
* image-
*/
@ApiParam("数据类型")
private String dataType;
@ApiParam("执行结果信息")
private String message;
@ApiParam("工步展示信息")
private String stepHtml;
@ApiParam("List结果集")
private List<T> ResultList;
@ApiParam("Map结果集")
public Map<String, Object> resultMap;
@ApiParam("工步清单")
private List<MesStep> stepList;
@ApiParam("List结果集的属性")
private List<AttrBean> dataAttrList;
}

Loading…
Cancel
Save