【8.3.3】【sys】更新机构的层级编码

dev-8.3.3
stylefeng 2025-01-21 18:32:56 +08:00
parent 3dd0aca930
commit 0ba098f14e
3 changed files with 14 additions and 1 deletions

View File

@ -119,6 +119,13 @@ public class HrOrganization extends BaseExpandFieldEntity implements AbstractTre
@ChineseDescription("对接外部主数据的父级机构id")
private String masterOrgParentId;
/**
* sys_hr_organization_level
*/
@TableField("level_code")
@ChineseDescription("组织机构层级编码来自sys_hr_organization_level表")
private String levelCode;
/**
* id
*/

View File

@ -109,6 +109,12 @@ public class HrOrganizationRequest extends BaseRequest {
@ChineseDescription("对接外部主数据的机构id")
private String masterOrgId;
/**
* sys_hr_organization_level
*/
@ChineseDescription("组织机构层级编码来自sys_hr_organization_level表")
private String levelCode;
/**
* id
*/

View File

@ -175,7 +175,7 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
wrapper.eq(HrOrganization::getOrgId, hrOrganizationRequest.getOrgId());
wrapper.select(HrOrganization::getOrgId, HrOrganization::getOrgName, HrOrganization::getOrgShortName, HrOrganization::getOrgCode,
HrOrganization::getOrgParentId, HrOrganization::getOrgSort, HrOrganization::getOrgType, HrOrganization::getStatusFlag,
HrOrganization::getTaxNo, HrOrganization::getRemark, HrOrganization::getOrgPids);
HrOrganization::getTaxNo, HrOrganization::getRemark, HrOrganization::getOrgPids, HrOrganization::getLevelCode);
HrOrganization hrOrganization = this.getOne(wrapper, false);
if (ObjectUtil.isEmpty(hrOrganization)) {