diff --git a/base-fast/src/main/java/com/boge/modules/dept/service/impl/SysDeptServiceImpl.java b/base-fast/src/main/java/com/boge/modules/dept/service/impl/SysDeptServiceImpl.java index cc1be9b..8e7a966 100644 --- a/base-fast/src/main/java/com/boge/modules/dept/service/impl/SysDeptServiceImpl.java +++ b/base-fast/src/main/java/com/boge/modules/dept/service/impl/SysDeptServiceImpl.java @@ -137,7 +137,7 @@ public class SysDeptServiceImpl extends ServiceImpl impl verification(deptIds); Set depts = new HashSet<>(); Set pids = new HashSet<>(); - List deptList = sysDeptMapper.selectList(new QueryWrapper().in("deptId", deptIds)); + List deptList = sysDeptMapper.selectList(new QueryWrapper().in("dept_id", deptIds)); for (String deptId : deptIds) { depts.add(deptId); String allChild = sysDeptMapper.findAllChild(deptId); @@ -146,7 +146,7 @@ public class SysDeptServiceImpl extends ServiceImpl impl depts.addAll(Arrays.asList(split)); } } - this.remove(new QueryWrapper().in("deptId", depts)); + this.remove(new QueryWrapper().in("dept_id", depts)); deptList.forEach(dept -> { if (StringUtils.isNotEmpty(dept.getPid())){sysDeptMapper.updateSubCount(dept.getPid());} });