| | |
| | | organizationMapper.update(null, deleteWrapper); |
| | | |
| | | //删除组织账号 |
| | | userService.deleteUserByOrganizationId(id); |
| | | userService.deleteUsersByOrganizationId(id); |
| | | |
| | | //判断是否含有子组织 |
| | | List<Organization> children = getAllChildrenOrganization(existOrganization.getId()); |
| | |
| | | updateWrapper.set("is_delete", Constants.DELETE); |
| | | organizationMapper.update(null, updateWrapper); |
| | | //删除所有子组织账号 |
| | | childrenId.forEach(value->userService.deleteUserByOrganizationId(value)); |
| | | childrenId.forEach(value->userService.deleteUsersByOrganizationId(value)); |
| | | |
| | | } else {//不删除 |
| | | //提取所有直属子组织id |