优化部分查询SQL

This commit is contained in:
wangchl
2018-08-06 11:42:15 +08:00
parent 127b532825
commit db8f960b0d
10 changed files with 26 additions and 16 deletions

View File

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