Browse Source

我的个人信息添加根组织id

dev_shibei_match
zhaoqifeng 4 years ago
parent
commit
dcdb50c17f
  1. 4
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/MineResultDTO.java
  2. 10
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/StaffServiceImpl.java

4
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/MineResultDTO.java

@ -55,4 +55,8 @@ public class MineResultDTO implements Serializable {
* 手机号 * 手机号
*/ */
private String mobile; private String mobile;
/**
* 根组织
*/
private String rootAgencyId;
} }

10
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/StaffServiceImpl.java

@ -1,6 +1,7 @@
package com.epmet.service.impl; package com.epmet.service.impl;
import com.epmet.commons.tools.constant.NumConstant; import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.constant.StrConstant;
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult;
import com.epmet.commons.tools.exception.EpmetErrorCode; import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.RenException; import com.epmet.commons.tools.exception.RenException;
@ -229,6 +230,15 @@ public class StaffServiceImpl implements StaffService {
//用户所属机关名称 //用户所属机关名称
result.setMyAgencyName(customerAgencyDTO.getOrganizationName()); result.setMyAgencyName(customerAgencyDTO.getOrganizationName());
} }
//2021.08.27 zhaoqf start
//获取根组织
CustomerAgencyDTO agency = customerAgencyService.get(customerStaffAgency.getAgencyId());
if (StringUtils.isNotBlank(agency.getPids())) {
result.setRootAgencyId(agency.getPids().split(StrConstant.COLON)[0]);
} else {
result.setRootAgencyId(customerStaffAgency.getAgencyId());
}
//2021.08.27 zhaoqf end
return result; return result;
} }

Loading…
Cancel
Save