mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-18 19:20:05 +08:00
fix: CRM 管理员数据权限 bug
This commit is contained in:
parent
488c46073b
commit
0808bdaa41
@ -64,8 +64,10 @@ public class CrmPermissionUtils {
|
|||||||
}
|
}
|
||||||
// 2.2 场景二:我参与的数据
|
// 2.2 场景二:我参与的数据
|
||||||
if (CrmSceneTypeEnum.isInvolved(sceneType)) {
|
if (CrmSceneTypeEnum.isInvolved(sceneType)) {
|
||||||
query.ne(ownerUserIdField, userId)
|
query.innerJoin(CrmPermissionDO.class, on -> on.eq(CrmPermissionDO::getBizType, bizType)
|
||||||
.in(CrmPermissionDO::getLevel, CrmPermissionLevelEnum.READ.getLevel(), CrmPermissionLevelEnum.WRITE.getLevel());
|
.eq(CrmPermissionDO::getBizId, bizId)
|
||||||
|
.in(CrmPermissionDO::getLevel, CrmPermissionLevelEnum.READ.getLevel(), CrmPermissionLevelEnum.WRITE.getLevel()));
|
||||||
|
query.ne(ownerUserIdField, userId);
|
||||||
}
|
}
|
||||||
// 2.3 场景三:下属负责的数据
|
// 2.3 场景三:下属负责的数据
|
||||||
if (CrmSceneTypeEnum.isSubordinate(sceneType)) {
|
if (CrmSceneTypeEnum.isSubordinate(sceneType)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user