|
|
@ -2022,18 +2022,17 @@ public class WmsEnumUtil {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum DATA_STATUS {
|
|
|
|
public enum DATA_STATUS {
|
|
|
|
ENABLE(1, "启用"),
|
|
|
|
ENABLE(1, "启用", "fa fa-success cell-fa fa-check"),
|
|
|
|
DISABLE(2, "禁用"),
|
|
|
|
DISABLE(2, "禁用", "fa fa-disabled cell-fa fa-times-circle"),
|
|
|
|
LOCKING(3, "全部");
|
|
|
|
LOCKING(3, "全部", "fa cell-fa fa-lock");
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
DATA_STATUS() {
|
|
|
|
DATA_STATUS(int value, String code, String description) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DATA_STATUS(int value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2045,11 +2044,15 @@ public class WmsEnumUtil {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
public String getCode() {
|
|
|
|
int tmp = 1;
|
|
|
|
return code;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String valueOf(int val) {
|
|
|
|
|
|
|
|
String tmp = null;
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
tmp = values()[i].value;
|
|
|
|
tmp = values()[i].getCode();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return tmp;
|
|
|
|
return tmp;
|
|
|
|