修复业管身份登录添加岗位时报错【不支持的岗位分类:XXX】
Signed-off-by: D哥 <12271764+darrenteng@user.noreply.gitee.com>
This commit is contained in:
parent
8d17ec38ba
commit
4926efe662
@ -25,10 +25,10 @@ import vip.xiaonuo.common.exception.CommonException;
|
|||||||
public enum BizPositionCategoryEnum {
|
public enum BizPositionCategoryEnum {
|
||||||
|
|
||||||
/** 高层 */
|
/** 高层 */
|
||||||
COMPANY("HIGH"),
|
HIGH("HIGH"),
|
||||||
|
|
||||||
/** 中层 */
|
/** 中层 */
|
||||||
DEPT("MIDDLE"),
|
MIDDLE("MIDDLE"),
|
||||||
|
|
||||||
/** 基层 */
|
/** 基层 */
|
||||||
LOW("LOW");
|
LOW("LOW");
|
||||||
@ -40,7 +40,7 @@ public enum BizPositionCategoryEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void validate(String value) {
|
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) {
|
if(!flag) {
|
||||||
throw new CommonException("不支持的岗位分类:{}", value);
|
throw new CommonException("不支持的岗位分类:{}", value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user