处理排序问题
This commit is contained in:
parent
e1719bd1fa
commit
a26cb456f2
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue