Revert "增加验证机构orgid是否存在方法"
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This reverts commit 8ca760dccf.
This commit is contained in:
lxd 2025-05-23 10:23:59 +08:00
parent 8ca760dccf
commit 9c8e4a4f91
3 changed files with 0 additions and 25 deletions

View File

@ -52,12 +52,6 @@ public class DeptController {
deptService.deleteDept(id);
return success(true);
}
@GetMapping("/verifyOrgid")
@Operation(summary = "验证机构ID是否存在")
public CommonResult<Boolean> validateOrgIdExists(String orgId) {
boolean isExist = deptService.validateOrgIdExists(orgId);
return success(isExist);
}
@GetMapping("/list")
@Operation(summary = "获取部门列表")

View File

@ -35,10 +35,6 @@ public interface DeptService {
* @param id 部门编号
*/
void deleteDept(Long id);
/*
* 验证机构orgid是否存在
* */
Boolean validateOrgIdExists(String orgId);
/**
* 获得部门信息

View File

@ -87,21 +87,6 @@ public class DeptServiceImpl implements DeptService {
// 删除部门
deptMapper.deleteById(id);
}
@Override
public Boolean validateOrgIdExists(String orgId)
{
if (orgId == null) {
return false;
}
DeptDO dept = deptMapper.selectOne(DeptDO::getOrgid, orgId);
if (dept == null) {
return false;
}
else
{
return true;
}
}
@VisibleForTesting
void validateDeptExists(Long id) {