Browse Source

党组织信息查询异常

feature/evaluate
yinzuomei 3 years ago
parent
commit
f70b6a9627
  1. 6
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java
  2. 7
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyOrgServiceImpl.java

6
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

@ -181,6 +181,9 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
//!!!!!!!不用前端传的了。 我自己查询吧
IcPartyOrgInfo icPartyOrgInfo=SpringContextUtils.getBean(IcPartyOrgService.class).queryIcPartyOrgInfo(formDTO.getPublishPartyOrgId());
if (null == icPartyOrgInfo || StringUtils.isBlank(icPartyOrgInfo.getPartyOrgIdPath())) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "党组织信息查询异常", "党组织信息查询异常");
}
icPartyActEntity.setPublishOrgPath(icPartyOrgInfo.getPartyOrgIdPath());
AgencyInfoCache agencyInfoCache= CustomerOrgRedis.getAgencyInfo(staffInfo.getAgencyId());
@ -225,6 +228,9 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
joinOrg.setIcPartyActId(icPartyActEntity.getId());
//!!!!!!!不用前端传的了。 我自己查询吧
IcPartyOrgInfo joinPartyOrgInfo=SpringContextUtils.getBean(IcPartyOrgService.class).queryIcPartyOrgInfo(joinOrg.getId());
if (null == joinPartyOrgInfo || StringUtils.isBlank(joinPartyOrgInfo.getPartyOrgIdPath())) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "党组织信息查询异常", "党组织信息查询异常");
}
joinOrg.setJoinOrgPath(joinPartyOrgInfo.getPartyOrgIdPath());
icPartyActOrgDao.insert(joinOrg);
});

7
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyOrgServiceImpl.java

@ -410,10 +410,12 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart
*/
@Override
public IcPartyOrgInfo queryIcPartyOrgInfo(String icPartyOrgId) {
IcPartyOrgEntity orgEntity=baseDao.selectById(icPartyOrgId);
if (null == orgEntity) {
return null;
}
IcPartyOrgInfo orgInfo=new IcPartyOrgInfo();
orgInfo.setId(icPartyOrgId);
IcPartyOrgEntity orgEntity=baseDao.selectById(icPartyOrgId);
if (null != orgEntity) {
orgInfo.setOrgPid(orgEntity.getOrgPid());
orgInfo.setPartyOrgName(orgEntity.getPartyOrgName());
if(StringUtils.isBlank(orgEntity.getOrgPid())||NumConstant.ZERO_STR.equals(orgEntity.getOrgPid())){
@ -433,7 +435,6 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart
String partyOrgNamePath = map.containsKey("namePath") ? map.get("namePath") : StrConstant.EPMETY_STR;
orgInfo.setPartyOrgIdPath(partyOrgIdPath);
orgInfo.setPartyOrgNamePath(partyOrgNamePath);
}
return orgInfo;
}

Loading…
Cancel
Save