开发导入功能模块

yun-zuoyi
袁津哲 5 years ago committed by wei.peng
parent 509240126a
commit 7789883f9b

@ -6252,4 +6252,115 @@ public class WmsEnumUtil {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TEMPLATE_IMPORT_TYPE {
SINGLE_TABLE(10, "SINGLE_TABLE", "单表"),
MULTI_TABLE(20, "MULTI_TABLE", "多表");
private int value;
private String code;
private String description;
TEMPLATE_IMPORT_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TEMPLATE_UPDATE_TYPE {
FULL_COVERAGE(10, "FULL_COVERAGE", "全覆盖"),
DIFF_UPDATE(20, "DIFF_UPDATE", "差异更新"),
REPEATE_NO_IMPORT(30, "REPEATE_NO_IMPORT", "重复不导入");
private int value;
private String code;
private String description;
TEMPLATE_UPDATE_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
}

@ -34,4 +34,7 @@ public class BasBeanFieldModel {
@ApiParam("实例字段名称")
public String propertyName;
@ApiParam("实例类全名")
public String entityClassName;
}

Loading…
Cancel
Save