From 0f985f06ff577866d2c4bae01e18eef3bf905237 Mon Sep 17 00:00:00 2001 From: 21819 Date: Thu, 29 Feb 2024 16:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=88=97=E8=A1=A8=E6=8C=89?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=88=96=E6=8C=89=E7=85=A7=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/biutag/lan/service/impl/DeptServiceImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DeptServiceImpl.java b/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DeptServiceImpl.java index 90a0c4c..5879ad5 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DeptServiceImpl.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/impl/DeptServiceImpl.java @@ -53,7 +53,7 @@ class DeptServiceImpl implements IDeptService { List DeptList = deptMapper.selectList(new QueryWrapper() .gt("pid", 0) .eq("is_delete", 0) - .orderByDesc((Arrays.asList("sort", "id")))); + .orderByAsc((Arrays.asList("sort", "id")))); List list = new ArrayList<>(); for (Dept dept : DeptList) { @@ -79,7 +79,7 @@ class DeptServiceImpl implements IDeptService { public JSONArray list(DeptSearchValidate searchValidate) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("is_delete", 0); - queryWrapper.orderByDesc(Arrays.asList("sort", "id")); + queryWrapper.orderByAsc(Arrays.asList("sort", "id")); queryWrapper.select(Dept.class, info -> !info.getColumn().equals("is_delete") && !info.getColumn().equals("delete_time")); @@ -93,7 +93,7 @@ class DeptServiceImpl implements IDeptService { List dictDataList = dictDataMapper.selectList(new QueryWrapper() .select("id,type_id,name,value,remark,sort,status,create_time,update_time") .eq("type_id", AppConstants.DEPT_TYPE_CATEGORY)//机构类型 - .eq("is_delete", 0).orderByDesc("sort")); + .eq("is_delete", 0).orderByAsc("sort")); List list = new LinkedList<>(); for (Dept dept : DeptList) { @@ -126,18 +126,18 @@ class DeptServiceImpl implements IDeptService { @Override public List listThree(Integer secondDeptId) { - return deptMapper.selectList(new LambdaQueryWrapper().eq(Dept::getPid, Objects.nonNull(secondDeptId) ? secondDeptId : AdminThreadLocal.getDeptId()).eq(Dept::getLevel, 3)); + return deptMapper.selectList(new LambdaQueryWrapper().eq(Dept::getPid, Objects.nonNull(secondDeptId) ? secondDeptId : AdminThreadLocal.getDeptId()).eq(Dept::getLevel, 3).orderByAsc(Dept::getCategory)); } @Override public List listByThree() { DeptVo deptVo = detail(AdminThreadLocal.getDeptId()); - return deptMapper.selectList(new LambdaQueryWrapper().eq(Dept::getPid, deptVo.getPid()).eq(Dept::getLevel, 3)); + return deptMapper.selectList(new LambdaQueryWrapper().eq(Dept::getPid, deptVo.getPid()).eq(Dept::getLevel, 3).orderByAsc(Dept::getCategory)); } @Override public List listCountersign() { - return deptMapper.selectList(new LambdaQueryWrapper().eq(Dept::getPid, AdminThreadLocal.getDeptId())); + return deptMapper.selectList(new LambdaQueryWrapper().eq(Dept::getPid, AdminThreadLocal.getDeptId()).orderByAsc(Dept::getCategory)); } /**