BUG
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
0f2b241d07
commit
165a67f949
@ -54,8 +54,8 @@ public class DeptController {
|
|||||||
}
|
}
|
||||||
@GetMapping("/verifyOrgid")
|
@GetMapping("/verifyOrgid")
|
||||||
@Operation(summary = "验证机构ID是否存在")
|
@Operation(summary = "验证机构ID是否存在")
|
||||||
public CommonResult<Boolean> validateOrgIdExists(@RequestParam("orgId") Integer 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ public class DeptDO extends TenantBaseDO {
|
|||||||
*
|
*
|
||||||
* 关联 {@link #id}
|
* 关联 {@link #id}
|
||||||
*/
|
*/
|
||||||
@TableField("parentId")
|
@TableField("parent_Id")
|
||||||
private Long parentId;
|
private Long parentId;
|
||||||
/**
|
/**
|
||||||
* 显示顺序
|
* 显示顺序
|
||||||
|
|||||||
@ -4,12 +4,14 @@ import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
|||||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
|
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
|
||||||
import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
|
import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
|
@InterceptorIgnore(tenantLine = "true")
|
||||||
public interface DeptMapper extends BaseMapperX<DeptDO> {
|
public interface DeptMapper extends BaseMapperX<DeptDO> {
|
||||||
|
|
||||||
default List<DeptDO> selectList(DeptListReqVO reqVO) {
|
default List<DeptDO> selectList(DeptListReqVO reqVO) {
|
||||||
|
|||||||
@ -38,7 +38,7 @@ public interface DeptService {
|
|||||||
/*
|
/*
|
||||||
* 验证机构orgid是否存在
|
* 验证机构orgid是否存在
|
||||||
* */
|
* */
|
||||||
Boolean validateOrgIdExists(Integer orgId);
|
Boolean validateOrgIdExists(Integer orgid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得部门信息
|
* 获得部门信息
|
||||||
|
|||||||
@ -88,12 +88,12 @@ public class DeptServiceImpl implements DeptService {
|
|||||||
deptMapper.deleteById(id);
|
deptMapper.deleteById(id);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Boolean validateOrgIdExists(Integer orgId)
|
public Boolean validateOrgIdExists(Integer orgid)
|
||||||
{
|
{
|
||||||
if (orgId == null) {
|
if (orgid == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
DeptDO dept = deptMapper.selectOne(DeptDO::getOrgid, orgId);
|
DeptDO dept = deptMapper.selectOne(DeptDO::getOrgid, orgid);
|
||||||
if (dept == null) {
|
if (dept == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user