|
|
@ -291,6 +291,10 @@ public class DeptController extends BaseController {
|
|
|
|
if (CollUtil.isNotEmpty(deptUserEntities)) {
|
|
|
|
if (CollUtil.isNotEmpty(deptUserEntities)) {
|
|
|
|
return ResultVOUtils.error(500, "删除失败,请先移除该部门关联用户信息!");
|
|
|
|
return ResultVOUtils.error(500, "删除失败,请先移除该部门关联用户信息!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
List<DeptEntity> deptEntities = deptService.selectByPcode(deptEntity.getCode());
|
|
|
|
|
|
|
|
if(deptEntities.size()>0){
|
|
|
|
|
|
|
|
return ResultVOUtils.error(500, "删除失败,请先移除该部门下的子部门!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean b = deptService.deleteById(deleteRequest.getId());
|
|
|
|
boolean b = deptService.deleteById(deleteRequest.getId());
|
|
|
|