[2025.06.01] sql 작업

This commit is contained in:
kangsunlee
2025-06-01 15:50:25 +09:00
parent 525462b659
commit 8989e85edb
10 changed files with 1089 additions and 262 deletions

View File

@@ -65,10 +65,14 @@
JOIN role r ON fur.role_id = r.id AND r.is_deleted = FALSE
LEFT JOIN role_has_privilege rhp ON r.id = rhp.role_id AND rhp.is_deleted = FALSE
LEFT JOIN privilege p ON rhp.privilege_id = p.id AND p.is_deleted = FALSE
WHERE fur.front_user_id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
<where>
<if test="ids != null and ids.size() > 0">
fur.front_user_id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</where>
</select>
</mapper>