新增菜单

yun-zuoyi
zhang.xw 2 years ago
parent e73b97cd47
commit df2b9b44b8

@ -108,7 +108,18 @@ public class CommonEnumUtil {
/** /**
* EMS * EMS
*/ */
EMS(37,8380,31,170000000L,"i3ems","能源管理系统"); EMS(37,8380,31,170000000L,"i3ems","能源管理系统"),
/**
* LAC
*/
LAC_SCHDULER(66,8601,31,310000000L,"lac-scheduler","LAC调度系统"),
/**
* LAC
*/
LAC_REPORT(67,8600,31,310000001L,"leo","LAC报表中心");
/** /**
* ID * ID
@ -639,6 +650,64 @@ public class CommonEnumUtil {
} }
/** /**
* 0.
* 1.
* 2.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_PASSWORD_OVERDUE {
NOT_SET(0, "NOT_SET", "未设置"),
OVERDUE(1, "OVERDUE", "过期"),
NOT_EXPIRED(2, "NOT_EXPIRED", "不过期");
private int value;
private String code;
private String description;
private USER_PASSWORD_OVERDUE(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 String valueOfDescription(int val) {
return valueOf(val);
}
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;
}
}
/**
* *
* 1 * 1
* 2 * 2

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.platform.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.platform.bean.SysRoleLoginStrategy;
import cn.estsh.i3plus.pojo.platform.bean.SysTask;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @Date : 2018-10-22 12:03:01.372
* @Modify :
**/
@Repository
public interface SysRoleLoginRepository extends BaseRepository<SysRoleLoginStrategy, Long> {
}
Loading…
Cancel
Save