Browse Source

orgIdPath

dev
yinzuomei 3 years ago
parent
commit
a907f2ef57
  1. 8
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

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

@ -7,6 +7,7 @@ import com.epmet.commons.rocketmq.messages.PartyMeetingMessageMQMsg;
import com.epmet.commons.tools.constant.AppClientConstant;
import com.epmet.commons.tools.constant.Constant;
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.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.EpmetException;
@ -177,7 +178,12 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
icPartyActEntity.setOrgId(staffInfo.getAgencyId());
AgencyInfoCache agencyInfoCache= CustomerOrgRedis.getAgencyInfo(staffInfo.getAgencyId());
icPartyActEntity.setPid(agencyInfoCache.getPid());
icPartyActEntity.setOrgIdPath(agencyInfoCache.getPids());
if(StringUtils.isBlank(agencyInfoCache.getPid())||NumConstant.ZERO_STR.equals(agencyInfoCache.getPid())){
// 根组织
icPartyActEntity.setOrgIdPath(agencyInfoCache.getId());
}else{
icPartyActEntity.setOrgIdPath(agencyInfoCache.getPids().concat(StrConstant.COLON).concat(agencyInfoCache.getId()));
}
Boolean sendMsg=false;
if(StringUtils.isNotBlank(formDTO.getIcPartyActId())){
icPartyActEntity.setId(formDTO.getIcPartyActId());

Loading…
Cancel
Save