📖 CRM:code review 数据权限的实现

This commit is contained in:
YunaiV
2023-12-09 10:50:47 +08:00
parent 8f578a9a82
commit 23df8633f4
25 changed files with 128 additions and 139 deletions

View File

@ -17,9 +17,8 @@ import java.util.Arrays;
public enum CrmSceneTypeEnum implements IntArrayValuable {
OWNER(1, "我负责的"),
FOLLOW(2, "关注"),
INVOLVED(3, "我参与"),
SUBORDINATE(4, "下属负责的");
INVOLVED(2, "参与"),
SUBORDINATE(3, "下属负责");
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmSceneTypeEnum::getType).toArray();
@ -36,10 +35,6 @@ public enum CrmSceneTypeEnum implements IntArrayValuable {
return ObjUtil.equal(OWNER.getType(), type);
}
public static boolean isFollow(Integer type) {
return ObjUtil.equal(FOLLOW.getType(), type);
}
public static boolean isInvolved(Integer type) {
return ObjUtil.equal(INVOLVED.getType(), type);
}