sql 调整
All checks were successful
local-test分支构建docker并发布运行 / Docker-Build (push) Successful in 1m23s

This commit is contained in:
tiger_zhou 2024-09-05 17:45:38 +08:00
parent 6fff56eddc
commit f4145b43de

View File

@ -13,9 +13,10 @@
, name , name
</sql> </sql>
<select id="queryRole" resultType="club.joylink.xiannccda.dto.auth.AuthRoleDTO"> <select id="queryRole" resultType="club.joylink.xiannccda.dto.auth.AuthRoleDTO">
select a.id, A.name, B.api_ids select A.id, A.name, B.api_ids
from auth_role A from auth_role A
left join (select role_id, group_concat(api_id) as api_ids from auth_role_api_ref GROUP BY role_id) B left join (select role_id, group_concat(api_id) as api_ids from auth_role_api_ref GROUP BY role_id) B
on A.id = B.role_id on A.id = B.role_id
where 1 = 1
</select> </select>
</mapper> </mapper>