update 优化 框架整体提高查询性能

This commit is contained in:
疯狂的狮子Li
2023-12-26 23:54:34 +08:00
parent 073d5e0243
commit bb37b3401d
23 changed files with 110 additions and 203 deletions

View File

@@ -11,8 +11,8 @@
select * from sys_dept ${ew.getCustomSqlSegment}
</select>
<select id="selectDeptById" resultMap="SysDeptResult">
select * from sys_dept where del_flag = '0' and dept_id = #{deptId}
<select id="countDeptById" resultType="Long">
select count(*) from sys_dept where del_flag = '0' and dept_id = #{deptId}
</select>
<select id="selectDeptListByRoleId" resultType="Long">