| | |
| | | import com.gkhy.common.enums.BusinessType; |
| | | import com.gkhy.common.utils.StringUtils; |
| | | import com.gkhy.system.service.ISysDeptService; |
| | | import com.gkhy.system.service.SysExpertClassifyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | { |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | @Autowired |
| | | private SysExpertClassifyService expertClassifyService; |
| | | |
| | | /** |
| | | * 获取部门列表 |
| | |
| | | { |
| | | if (deptService.hasChildByDeptId(deptId)) |
| | | { |
| | | return warn("存在下级部门,不允许删除"); |
| | | return warn("存在下级处室,不允许删除"); |
| | | } |
| | | if (deptService.checkDeptExistUser(deptId)) |
| | | { |
| | | return warn("部门存在用户,不允许删除"); |
| | | return warn("处室存在用户,不允许删除"); |
| | | } |
| | | if (expertClassifyService.countByDeptId(deptId) > 0){ |
| | | return warn("处室存在专业领域,不允许删除,请先专业领域删除对应处室绑定"); |
| | | } |
| | | //todo 校验专家是否申请复用 |
| | | deptService.checkDeptDataScope(deptId); |