You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
<?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.epmet.dao.GovRoleMenuDao">
|
|
|
|
<select id="getMenuIdList" resultType="java.lang.String">
|
|
select menu_id from gov_role_menu where del_flag = 0 and role_id = #{value}
|
|
</select>
|
|
|
|
<select id="getMenuIdsList" resultType="java.lang.String">
|
|
select menu_id from gov_role_menu
|
|
where del_flag = 0
|
|
and role_id in (
|
|
<foreach collection="ids" item="id" separator=",">
|
|
#{id}
|
|
</foreach>
|
|
)
|
|
</select>
|
|
|
|
<update id="deleteByRoleIds">
|
|
update gov_role_menu set del_flag = 1 where del_flag = 0 and role_id in
|
|
<foreach item="roleId" collection="array" open="(" separator="," close=")">
|
|
#{roleId}
|
|
</foreach>
|
|
</update>
|
|
|
|
<update id="deleteByRoleId">
|
|
update gov_role_menu set del_flag = 1 where role_id = #{value} and del_flag = 0
|
|
</update>
|
|
|
|
<update id="deleteByMenuId">
|
|
update gov_role_menu set del_flag = 1 where menu_id = #{value} and del_flag = 0
|
|
</update>
|
|
|
|
</mapper>
|
|
|