修正 sqlserver 分页时,缺少 order by 的问题

This commit is contained in:
thinkgem
2025-01-21 15:37:29 +08:00
parent 9d2d00bc89
commit a578a70a9b

View File

@@ -61,6 +61,7 @@
<if test="global.useCorpModel">
AND a.corp_code = #{corpCode}
</if>
ORDER BY a.user_code
</select>
<!-- 根据部门编码查询用户,仅返回基本信息 -->
@@ -81,6 +82,7 @@
<foreach item="code" index="index" collection="codes" open="(" separator="," close=")">
#{code}
</foreach>
ORDER BY a.user_code
</select>
<!-- 根据角色编码查询用户,仅返回基本信息 -->
@@ -100,6 +102,7 @@
<foreach item="code" index="index" collection="codes" open="(" separator="," close=")">
#{code}
</foreach>
ORDER BY a.user_code
</select>
<!-- 根据岗位编码查询用户,仅返回基本信息 -->
@@ -121,6 +124,7 @@
<foreach item="code" index="index" collection="codes" open="(" separator="," close=")">
#{code}
</foreach>
ORDER BY a.user_code
</select>
</mapper>