唯一限制条件只返回单条数据

This commit is contained in:
RuoYi
2020-08-05 14:28:45 +08:00
parent 3b61ed56b0
commit 51fa66f61a
8 changed files with 12 additions and 12 deletions

View File

@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<select id="checkMenuExistRole" resultType="Integer">
select count(1) from sys_role_menu where menu_id = #{menuId}
select count(1) from sys_role_menu where menu_id = #{menuId}
</select>
<delete id="deleteRoleMenuByRoleId" parameterType="Long">