Browse Source

党组织信息查询异常

master
yinzuomei 3 years ago
parent
commit
5d4d408f82
  1. 6
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

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

@ -182,7 +182,7 @@ 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(), "党组织信息查询异常", "党组织信息查询异常");
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "党组织信息查询异常publishPartyOrgId="+formDTO.getPublishPartyOrgId(), "党组织信息查询异常");
}
icPartyActEntity.setPublishOrgPath(icPartyOrgInfo.getPartyOrgIdPath());
@ -227,9 +227,9 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
joinOrg.setCustomerId(formDTO.getCustomerId());
joinOrg.setIcPartyActId(icPartyActEntity.getId());
//!!!!!!!不用前端传的了。 我自己查询吧
IcPartyOrgInfo joinPartyOrgInfo=SpringContextUtils.getBean(IcPartyOrgService.class).queryIcPartyOrgInfo(joinOrg.getId());
IcPartyOrgInfo joinPartyOrgInfo=SpringContextUtils.getBean(IcPartyOrgService.class).queryIcPartyOrgInfo(joinOrg.getJoinOrgId());
if (null == joinPartyOrgInfo || StringUtils.isBlank(joinPartyOrgInfo.getPartyOrgIdPath())) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "党组织信息查询异常", "党组织信息查询异常");
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "党组织信息查询异常joinOrgId="+joinOrg.getJoinOrgId(), "党组织信息查询异常");
}
joinOrg.setJoinOrgPath(joinPartyOrgInfo.getPartyOrgIdPath());
icPartyActOrgDao.insert(joinOrg);

Loading…
Cancel
Save