新增用户账号类型

yun-zuoyi
nies 3 years ago
parent 37d7b461f6
commit 187c1382ca

@ -2847,4 +2847,52 @@ public class CommonEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_ACCOUNT_TYPE {
SYSTEM_USER(10, "系统用户"),
SWEB_USER(20, "sweb用户");
private int value;
private String description;
USER_ACCOUNT_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
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 Integer descriptionOfValue(String desc) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -103,6 +103,13 @@ public class SysUser extends BaseBean {
@Column(name = "AUTH_PLATFORM")
@ApiParam(value = "账号授权的应用列表")
private String authPlatform;
/**
*
*/
@Column(name = "USER_ACCOUNT_TYPE")
@ApiParam(value = "用户账号类型")
private String userAccountType;
/********************************** 关系信息 ********************************/
@Column(name = "DEPARTMENT_ID")

Loading…
Cancel
Save