【修复】修正职位分类枚举

pull/45/head
徐玉祥 2022-10-07 00:45:13 +08:00
parent 02a9c117d0
commit ab9ee3ce70
1 changed files with 3 additions and 3 deletions

View File

@ -25,10 +25,10 @@ import vip.xiaonuo.common.exception.CommonException;
public enum SysPositionCategoryEnum {
/** 高层 */
COMPANY("HIGH"),
HIGH("HIGH"),
/** 中层 */
DEPT("MIDDLE"),
MIDDLE("MIDDLE"),
/** 基层 */
LOW("LOW");
@ -40,7 +40,7 @@ public enum SysPositionCategoryEnum {
}
public static void validate(String value) {
boolean flag = COMPANY.getValue().equals(value) || DEPT.getValue().equals(value);
boolean flag = HIGH.getValue().equals(value) || MIDDLE.getValue().equals(value) || LOW.getValue().equals(value);
if(!flag) {
throw new CommonException("不支持的职位分类:{}", value);
}