update 优化 删除无用校验
This commit is contained in:
parent
8b69de0d54
commit
319270bf2b
@ -92,14 +92,6 @@ public interface ISysDeptService {
|
||||
*/
|
||||
boolean checkDeptNameUnique(SysDeptBo dept);
|
||||
|
||||
/**
|
||||
* 校验部门类别编码是否唯一
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
boolean checkDeptCategoryUnique(SysDeptBo dept);
|
||||
|
||||
/**
|
||||
* 校验部门是否有数据权限
|
||||
*
|
||||
|
@ -218,20 +218,6 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
||||
return !exist;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验部门类别编码是否唯一
|
||||
*
|
||||
* @param dept 部门信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public boolean checkDeptCategoryUnique(SysDeptBo dept) {
|
||||
boolean exist = baseMapper.exists(new LambdaQueryWrapper<SysDept>()
|
||||
.eq(SysDept::getDeptCategory, dept.getDeptCategory())
|
||||
.ne(ObjectUtil.isNotNull(dept.getDeptId()), SysDept::getDeptId, dept.getDeptId()));
|
||||
return !exist;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验部门是否有数据权限
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user