mirror of https://gitee.com/stylefeng/roses
组织结构增加税号查询条件
parent
d60958acec
commit
3b78f2179f
|
@ -447,6 +447,7 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
|
||||||
Long orgParentId = hrOrganizationRequest.getOrgParentId();
|
Long orgParentId = hrOrganizationRequest.getOrgParentId();
|
||||||
Long orgId = hrOrganizationRequest.getOrgId();
|
Long orgId = hrOrganizationRequest.getOrgId();
|
||||||
Integer orgType = hrOrganizationRequest.getOrgType();
|
Integer orgType = hrOrganizationRequest.getOrgType();
|
||||||
|
String taxNo = hrOrganizationRequest.getTaxNo();
|
||||||
|
|
||||||
// 拼接组织机构名称条件
|
// 拼接组织机构名称条件
|
||||||
queryWrapper.like(ObjectUtil.isNotEmpty(orgName), HrOrganization::getOrgName, orgName);
|
queryWrapper.like(ObjectUtil.isNotEmpty(orgName), HrOrganization::getOrgName, orgName);
|
||||||
|
@ -457,6 +458,9 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
|
||||||
// 组织机构类型拼接
|
// 组织机构类型拼接
|
||||||
queryWrapper.eq(ObjectUtil.isNotEmpty(orgType), HrOrganization::getOrgType, orgType);
|
queryWrapper.eq(ObjectUtil.isNotEmpty(orgType), HrOrganization::getOrgType, orgType);
|
||||||
|
|
||||||
|
// 税号查询条件
|
||||||
|
queryWrapper.eq(StrUtil.isNotEmpty(taxNo), HrOrganization::getTaxNo, taxNo);
|
||||||
|
|
||||||
// 拼接父机构id查询条件
|
// 拼接父机构id查询条件
|
||||||
if (ObjectUtil.isNotEmpty(orgParentId)) {
|
if (ObjectUtil.isNotEmpty(orgParentId)) {
|
||||||
queryWrapper.and(qw -> {
|
queryWrapper.and(qw -> {
|
||||||
|
|
Loading…
Reference in New Issue