ANDON枚举更新

yun-zuoyi
柯裕 6 years ago
parent 1977dc230b
commit 8ccc265f0d

@ -82,16 +82,18 @@ public class AndonEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ALARM_FLAG{ public enum ALARM_FLAG{
CALL(1,"呼叫"), CALL(1,"10","呼叫"),
SIGN(2,"签到"), SIGN(2,"20","签到"),
RESOLVE(3, "解决"), RESOLVE(3,"30","解决"),
CANCEL(4, "撤销"); CANCEL(4,"40", "撤销");
private int value; private int value;
private String code;
private String description; private String description;
ALARM_FLAG(int value, String description) { ALARM_FLAG(int value,String code, String description) {
this.value = value; this.value = value;
this.code = code;
this.description = description; this.description = description;
} }
@ -99,6 +101,8 @@ public class AndonEnumUtil {
return value; return value;
} }
public String getCode(){ return code; }
public String getDescription() { public String getDescription() {
return description; return description;
} }

Loading…
Cancel
Save