perf: 优化用户及部门查询

This commit is contained in:
2024-05-29 21:56:03 +08:00
parent 0285874540
commit 448f9a0a81
6 changed files with 16 additions and 28 deletions

View File

@@ -20,17 +20,18 @@
t1.status,
t1.is_system,
t1.pwd_reset_time,
t1.dept_id
t1.dept_id,
t2.name AS deptName
FROM sys_user AS t1
LEFT JOIN sys_dept AS t2 ON t2.id = t1.dept_id
</sql>
<select id="selectUserPage" resultType="top.continew.admin.system.model.entity.UserDO">
<select id="selectUserPage" resultType="top.continew.admin.system.model.resp.UserDetailResp">
<include refid="selectUser" />
${ew.customSqlSegment}
</select>
<select id="selectUserList" resultType="top.continew.admin.system.model.entity.UserDO">
<select id="selectUserList" resultType="top.continew.admin.system.model.resp.UserDetailResp">
<include refid="selectUser" />
${ew.customSqlSegment}
</select>