Browse Source

shuju cuowu

master
jianjun 4 years ago
parent
commit
6e6190e7e7
  1. 9
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java

9
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java

@ -38,6 +38,7 @@ import com.epmet.commons.tools.redis.RedisKeys;
import com.epmet.commons.tools.redis.RedisUtils; import com.epmet.commons.tools.redis.RedisUtils;
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; import com.epmet.commons.tools.redis.common.CustomerOrgRedis;
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; import com.epmet.commons.tools.redis.common.CustomerStaffRedis;
import com.epmet.commons.tools.redis.common.bean.GridInfoCache;
import com.epmet.commons.tools.security.dto.TokenDto; import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.utils.Result; import com.epmet.commons.tools.utils.Result;
@ -1017,12 +1018,12 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu
StaffOrgRelationEntity entity = new StaffOrgRelationEntity(); StaffOrgRelationEntity entity = new StaffOrgRelationEntity();
entity.setId(staffOrg.getId()); entity.setId(staffOrg.getId());
entity.setOrgType(OrgTypeEnum.AGENCY.getCode()); entity.setOrgType(OrgTypeEnum.AGENCY.getCode());
String pid = CustomerOrgRedis.getGridInfo(staffOrg.getStaffId()).getPid(); GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(staffOrg.getOrgId());
if (StringUtils.isBlank(pid)){ if (gridInfo == null || StringUtils.isBlank(gridInfo.getPid())){
log.error("abandonGridForDealBizData agencyId:{} is not exist",pid); log.error("abandonGridForDealBizData agencyId:{} is not exist",gridInfo.getPid());
return; return;
} }
entity.setOrgId(pid); entity.setOrgId(gridInfo.getPid());
updateList.add(entity); updateList.add(entity);
} }
}); });

Loading…
Cancel
Save