验证机构orgid是否存在方法 orgid修改类型
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled

This commit is contained in:
lxd 2025-05-23 14:50:35 +08:00
parent eb3502e78c
commit 0f2b241d07
4 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ public class DeptController {
} }
@GetMapping("/verifyOrgid") @GetMapping("/verifyOrgid")
@Operation(summary = "验证机构ID是否存在") @Operation(summary = "验证机构ID是否存在")
public CommonResult<Boolean> validateOrgIdExists(String orgId) { public CommonResult<Boolean> validateOrgIdExists(@RequestParam("orgId") Integer orgId) {
boolean isExist = deptService.validateOrgIdExists(orgId); boolean isExist = deptService.validateOrgIdExists(orgId);
return success(isExist); return success(isExist);
} }

View File

@ -75,7 +75,7 @@ public class DeptDO extends TenantBaseDO {
* *
*/ */
@TableField("orgid") @TableField("orgid")
private int orgid; private Integer orgid;
/* /*
* *

View File

@ -38,7 +38,7 @@ public interface DeptService {
/* /*
* 验证机构orgid是否存在 * 验证机构orgid是否存在
* */ * */
Boolean validateOrgIdExists(String orgId); Boolean validateOrgIdExists(Integer orgId);
/** /**
* 获得部门信息 * 获得部门信息

View File

@ -88,7 +88,7 @@ public class DeptServiceImpl implements DeptService {
deptMapper.deleteById(id); deptMapper.deleteById(id);
} }
@Override @Override
public Boolean validateOrgIdExists(String orgId) public Boolean validateOrgIdExists(Integer orgId)
{ {
if (orgId == null) { if (orgId == null) {
return false; return false;