社保故障自动获取任务完善,根据不同等级调用不同的安灯接口

yun-zuoyi
songss 5 years ago
parent bcf0d45000
commit bfe4b4f069

@ -5704,6 +5704,59 @@ public class MesPcnEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TAKET_LEVEL_CODE {
NORMAL(10, "A", "不需要报警和安灯处理"),
ALARM_CALL_ANDON(20, "B", "不需要报警,安灯记录"),
CALL_ANDON(30, "C", "安灯记录"),
FORCE_ANDON(40, "D", "强制ANDON呼叫"),
STOPLINE_FORCE_ANDON(50, "E", "系统进行记录并停线,强制ANDON呼叫");
private Integer value;
private String code;
private String description;
TAKET_LEVEL_CODE(Integer value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save