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.
25 lines
884 B
25 lines
884 B
<?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.OperRoleMenuDao">
|
|
|
|
<select id="getMenuIdList" resultType="java.lang.String">
|
|
select menu_id from oper_role_menu where role_id = #{value}
|
|
</select>
|
|
|
|
<update id="deleteByRoleIds">
|
|
update oper_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 oper_role_menu set del_flag = 1 where role_id = #{value} and del_flag = 0
|
|
</update>
|
|
|
|
<update id="deleteByMenuId">
|
|
update oper_role_menu set del_flag = 1 where menu_id = #{value} and del_flag = 0
|
|
</update>
|
|
|
|
</mapper>
|
|
|