验证机构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
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:
parent
eb3502e78c
commit
0f2b241d07
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,7 +75,7 @@ public class DeptDO extends TenantBaseDO {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@TableField("orgid")
|
@TableField("orgid")
|
||||||
private int orgid;
|
private Integer orgid;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|||||||
@ -38,7 +38,7 @@ public interface DeptService {
|
|||||||
/*
|
/*
|
||||||
* 验证机构orgid是否存在
|
* 验证机构orgid是否存在
|
||||||
* */
|
* */
|
||||||
Boolean validateOrgIdExists(String orgId);
|
Boolean validateOrgIdExists(Integer orgId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得部门信息
|
* 获得部门信息
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user