处理排序问题

This commit is contained in:
TinyAnts 2022-09-16 09:25:04 +08:00
parent e1719bd1fa
commit a26cb456f2
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class SystemAuthPostServiceImpl implements ISystemAuthPostService {
public List<SystemAuthPostVo> all() {
List<SystemAuthPost> systemAuthPostList = systemAuthPostMapper.selectList(new QueryWrapper<SystemAuthPost>()
.eq("is_delete", 0)
.orderByDesc((Arrays.asList("id", "sort"))));
.orderByDesc((Arrays.asList("sort", "id"))));
List<SystemAuthPostVo> adminVoArrayList = new ArrayList<>();
for (SystemAuthPost systemAuthPost : systemAuthPostList) {
@ -79,7 +79,7 @@ public class SystemAuthPostServiceImpl implements ISystemAuthPostService {
!info.getColumn().equals("is_delete") &&
!info.getColumn().equals("delete_time"))
.eq("is_delete", 0)
.orderByDesc(Arrays.asList("id", "sort"));
.orderByDesc(Arrays.asList("sort", "id"));
systemAuthPostMapper.setSearch(queryWrapper, params, new String[]{
"like:code:str",