呼叫升级和响应升级优化

yun-zuoyi
Silliter 6 years ago
parent 0f74a211f7
commit a39ce52aa9

@ -269,6 +269,46 @@ public class AndonEnumUtil {
}
/**
*
* 10 - 20 - 30 - 40 -
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum NOTICE_LEVEL{
FIRST(10,"一级"),
SECOND(20,"二级"),
THIRD(30,"三级"),
FOUTH(40,"四级");
private int value;
private String description;
NOTICE_LEVEL(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;
}
}
/**
* ANDONMM= QM= EQ= GY= JC=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

Loading…
Cancel
Save