mirror of https://gitee.com/stylefeng/roses
commit
e9bee2f646
|
@ -113,6 +113,13 @@ public class HrOrganizationRequest extends BaseRequest {
|
||||||
/**
|
/**
|
||||||
* 税号
|
* 税号
|
||||||
*/
|
*/
|
||||||
|
@TableUniqueValue(
|
||||||
|
message = "企业税号存在重复",
|
||||||
|
groups = {add.class, edit.class},
|
||||||
|
tableName = "hr_organization",
|
||||||
|
columnName = "tax_no",
|
||||||
|
idFieldName = "org_id",
|
||||||
|
excludeLogicDeleteItems = true)
|
||||||
@ChineseDescription("税号")
|
@ChineseDescription("税号")
|
||||||
private String taxNo;
|
private String taxNo;
|
||||||
|
|
||||||
|
|
|
@ -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