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

This commit is contained in:
thinkgem
2025-01-21 15:37:38 +08:00
parent 30e725d256
commit c86d16320f

View File

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