Skip to content

Commit 454a671

Browse files
committed
feat: 修改排序条件
1 parent 506d15a commit 454a671

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

system/src/main/resources/mapper/SysMenuMapper.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
</if>
6363
</where>
6464
</if>
65-
GROUP BY sm.id, sm.create_time
66-
ORDER BY sm.create_time DESC
65+
GROUP BY sm.id, sm.order_num, sm.create_time
66+
ORDER BY sm.order_num
6767
</select>
6868
<select id="selectRolesVoByMenuIds" resultMap="SysMenuRolesVoMap">
6969
SELECT sm.*, JSON_ARRAYAGG(sr.code) r_code

system/src/main/resources/mapper/SysUserMapper.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</if>
6868
</where>
6969
</if>
70-
GROUP BY su.id, su.create_time
71-
ORDER BY su.create_time DESC
70+
GROUP BY su.id, su.username, su.create_time
71+
ORDER BY su.username
7272
</select>
7373
</mapper>

0 commit comments

Comments
 (0)