<!--查找用户权限--> <select id="FindStaffpermission" parameterClass="RolePermissionCondition" resultClass="ActStaffpermissionVW"> SELECT sp.st_id AS StId, sp.rl_id AS RlId, rl.rl_name AS RoleName FROM act_staffpermission sp INNER JOIN act_role rl ON sp.rl_id = rl.rl_id WHERE 1=1 <isGreaterThan property="UserId" compareValue="0"> AND sp.st_id = #UserId# </isGreaterThan> <isNotEmpty property="WarehouseIds"> AND rl.warehouse_id IN <iterate open="(" close=")" conjunction="," property="WarehouseIds"> #WarehouseIds[]# </iterate> </isNotEmpty> </select>
原文地址:https://www.cnblogs.com/xakml/p/10874745.html
时间: 2024-10-19 15:19:11