处理部门排序问题

This commit is contained in:
TinyAnts 2022-09-16 09:31:13 +08:00
parent b86a06fc08
commit 8958f19acb
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class SystemAuthDeptServiceImpl implements ISystemAuthDeptService {
public JSONArray list(Map<String, String> params) {
QueryWrapper<SystemAuthDept> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("is_delete", 0);
queryWrapper.orderByAsc(Arrays.asList("sort", "id"));
queryWrapper.orderByDesc(Arrays.asList("sort", "id"));
queryWrapper.select(SystemAuthDept.class, info ->
!info.getColumn().equals("is_delete") &&
!info.getColumn().equals("delete_time"));