工步参数 增加字段

yun-zuoyi
王杰 5 years ago
parent 0f2bf781a9
commit d64a8fd31c

@ -3126,6 +3126,41 @@ public class MesEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STEP_PARAM_IS_NEED {
TRUE(1, "是"),
FALSE(2, "否");
private int value;
private String description;
MES_STEP_PARAM_IS_NEED(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -65,6 +65,10 @@ public class MesStepParam extends BaseBean implements Serializable {
@ApiParam("参数对象")
private String objectCode;
@Column(name = "IS_NEED")
@ApiParam("是否必填")
private Integer isNeed = 1;
@Column(name = "TYPE")
@ApiParam("type")
private Integer type = 0;

Loading…
Cancel
Save