forked from github/dataease
feat: 权限查询优化
This commit is contained in:
parent
c16d531483
commit
21e6201d1f
@ -401,7 +401,7 @@ SELECT
|
||||
sys_auth.auth_source
|
||||
having sum( sys_auth_detail.privilege_value )> 0) temp;
|
||||
|
||||
select GROUP_CONCAT(id) into oTempAllIds from v_auth_model where v_auth_model.model_type=modelType and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( oTempLeafIds ,modelType));
|
||||
select GROUP_CONCAT(id) into oTempAllIds from (select GET_V_AUTH_MODEL_WITH_PARENT ( oTempLeafIds ,modelType) cids) t, v_auth_model where v_auth_model.model_type=modelType and FIND_IN_SET(v_auth_model.id,cids);
|
||||
|
||||
RETURN oTempAllIds;
|
||||
END
|
||||
|
Loading…
Reference in New Issue
Block a user