fix: 删除
This commit is contained in:
@@ -137,7 +137,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
|
||||
verification(deptIds);
|
||||
Set<String> depts = new HashSet<>();
|
||||
Set<String> pids = new HashSet<>();
|
||||
List<SysDept> deptList = sysDeptMapper.selectList(new QueryWrapper<SysDept>().in("deptId", deptIds));
|
||||
List<SysDept> deptList = sysDeptMapper.selectList(new QueryWrapper<SysDept>().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<SysDeptMapper, SysDept> impl
|
||||
depts.addAll(Arrays.asList(split));
|
||||
}
|
||||
}
|
||||
this.remove(new QueryWrapper<SysDept>().in("deptId", depts));
|
||||
this.remove(new QueryWrapper<SysDept>().in("dept_id", depts));
|
||||
deptList.forEach(dept -> {
|
||||
if (StringUtils.isNotEmpty(dept.getPid())){sysDeptMapper.updateSubCount(dept.getPid());}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user