|
|
@@ -127,10 +127,13 @@ public class DeleteDeptService { |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
private void deleteRoadDept(String tenantId, String deptId) { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("tenant_id", tenantId); |
|
|
|
map.put("dept_id", deptId); |
|
|
|
roadDeptMapper.deleteByMap(map); |
|
|
|
List<String> deptIdList = deptMapper.selectAllChildListById(deptId); |
|
|
|
if (CollectionUtil.isEmpty(deptIdList)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
roadDeptMapper.delete(new LambdaQueryWrapper<RoadDept>() |
|
|
|
.eq(RoadDept::getTenantId, tenantId) |
|
|
|
.in(RoadDept::getDeptId, deptIdList)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |