fetch:我的模块数据
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.sarRole.dao.TsRoleDao">
|
||||
|
||||
<select id="getMenuIdsByRoleIds" resultType="String">
|
||||
select distinct menu_id from ts_role_menu
|
||||
where role_id in
|
||||
@@ -10,6 +11,7 @@
|
||||
</foreach>
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="getResourceIdsByRoleIds" resultType="String">
|
||||
select distinct resource_id from ts_role_resource
|
||||
where role_id in
|
||||
@@ -19,4 +21,15 @@
|
||||
</foreach>
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="getRootMenuIdsByRoleIds" resultType="String">
|
||||
select distinct menu_id from ts_role_menu
|
||||
where role_id in
|
||||
(
|
||||
<foreach collection="list" separator="," item="roleId">
|
||||
#{roleId}
|
||||
</foreach>
|
||||
) and (parent_id is null or parent_id='')
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user