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