修改排序的 bug。
This commit is contained in:
@@ -87,10 +87,13 @@
|
||||
AND sar.role_id = #{roleId}
|
||||
AND sr.deleted = 0
|
||||
</if>
|
||||
<if test="orderBy != null">
|
||||
ORDER BY sa.${orderBy}, sa.id
|
||||
<if test="orderBy != null and !orderBy.isEmpty()">
|
||||
ORDER BY
|
||||
<foreach item="col" index="index" collection="orderBy" open="" separator="," close="">
|
||||
sa.${col}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="orderBy == null">
|
||||
<if test="orderBy == null or orderBy.isEmpty()">
|
||||
ORDER BY sa.id
|
||||
</if>
|
||||
LIMIT #{size} OFFSET #{offset}
|
||||
@@ -99,7 +102,7 @@
|
||||
</select>
|
||||
|
||||
<!--
|
||||
long count(SysAccountQuery queryParams);
|
||||
long count(AccountQueryParams queryParams);
|
||||
-->
|
||||
<select id="count" resultType="long">
|
||||
SELECT COUNT(*)
|
||||
|
Reference in New Issue
Block a user