pcn登陆限制

yun-zuoyi
joke.wang 4 years ago
parent 485fe13202
commit e2a9222b47

@ -6585,4 +6585,43 @@ public class MesPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_LOGIN_STATUS {
ONLINE(10, "在线"),
OFFLINE(20, "离线");
private int value;
private String description;
USER_LOGIN_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getValueStr() {
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;
}
}
} }

@ -71,4 +71,8 @@ public class MesPcnSysUserOffline extends BaseBean implements Serializable {
@ApiParam(value ="模块" , access ="模块") @ApiParam(value ="模块" , access ="模块")
private String moduleList; private String moduleList;
@Column(name="STATUS")
@ApiParam(value ="状态" , access ="状态")
private Integer status;
} }

Loading…
Cancel
Save