fix: 分页查询场景时,用户列表倒叙排序失效 (#40)
Co-authored-by: MrYuFei <36062024+MrYuFei@users.noreply.github.com>
This commit is contained in:
parent
f17e393c97
commit
85486d12f7
@ -90,6 +90,7 @@
|
||||
left join sys_dept d on u.dept_id = d.dept_id
|
||||
<include refid="Whrer_Sql"/>
|
||||
<if test="criteria.offset != null">
|
||||
order by u.user_id desc
|
||||
limit #{criteria.offset}, #{criteria.size}
|
||||
</if>
|
||||
) u
|
||||
@ -174,4 +175,4 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue
Block a user