cigs4/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml

21 lines
665 B
XML
Raw Normal View History

2022-06-20 16:26:51 +08:00
<?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.cnbm.admin.dao.SysRoleMenuDao">
<select id="getMenuIdList" resultType="long">
2023-02-22 15:59:13 +08:00
select menu_id from sys_role_menu where role_id = #{value} AND valid = 1
2022-06-20 16:26:51 +08:00
</select>
<delete id="deleteByRoleIds">
delete from sys_role_menu where role_id in
<foreach item="roleId" collection="array" open="(" separator="," close=")">
#{roleId}
</foreach>
2023-02-22 15:59:13 +08:00
AND valid = 1
2022-06-20 16:26:51 +08:00
</delete>
<delete id="deleteByMenuId">
2023-02-22 15:59:13 +08:00
delete from sys_role_menu where menu_id = #{value} AND valid = 1
2022-06-20 16:26:51 +08:00
</delete>
</mapper>