update 优化部门下岗位名称重复
This commit is contained in:
parent
236dd6e054
commit
906a031172
@ -154,6 +154,7 @@ public class SysPostServiceImpl implements ISysPostService, PostService {
|
|||||||
public boolean checkPostNameUnique(SysPostBo post) {
|
public boolean checkPostNameUnique(SysPostBo post) {
|
||||||
boolean exist = baseMapper.exists(new LambdaQueryWrapper<SysPost>()
|
boolean exist = baseMapper.exists(new LambdaQueryWrapper<SysPost>()
|
||||||
.eq(SysPost::getPostName, post.getPostName())
|
.eq(SysPost::getPostName, post.getPostName())
|
||||||
|
.eq(SysPost::getDeptId, post.getDeptId())
|
||||||
.ne(ObjectUtil.isNotNull(post.getPostId()), SysPost::getPostId, post.getPostId()));
|
.ne(ObjectUtil.isNotNull(post.getPostId()), SysPost::getPostId, post.getPostId()));
|
||||||
return !exist;
|
return !exist;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user