| | |
| | | </foreach> |
| | | </select> |
| | | |
| | | <!--查询对应的角色id--> |
| | | <select id="getRoleIdStrByRoleIdAndType" resultType="java.lang.String"> |
| | | SELECT id FROM BLADE_ROLE |
| | | WHERE id IN |
| | | <foreach collection="ids.split(',')" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | <if test="types!=null and types.size()>0"> |
| | | and type in |
| | | <foreach collection="types" item="type" open="(" separator="," close=")"> |
| | | #{type} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | <!--角色查询--> |
| | | <select id="getRoleList" resultType="org.springblade.modules.system.entity.Role"> |
| | | SELECT br.* FROM blade_role br |