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

This commit is contained in:
疯狂的狮子Li
2023-12-26 00:46:34 +08:00
parent 363af040d6
commit 9c84530593
30 changed files with 122 additions and 201 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">