...
|
...
|
@@ -16,10 +16,7 @@ import java.util.stream.Collectors; |
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
|
|
|
import com.yoho.core.rest.client.ServiceCaller;
|
|
|
import com.yoho.core.rest.exception.ServiceNotAvaibleException;
|
|
|
import com.yoho.core.rest.exception.ServiceNotFoundException;
|
|
|
import com.yoho.service.model.request.AreaReqBO;
|
|
|
import com.yoho.service.model.resource.ResourcesBO;
|
|
|
import com.yoho.service.model.resource.ResourcesServices;
|
...
|
...
|
@@ -28,7 +25,7 @@ import com.yoho.service.model.response.AreaRspBo; |
|
|
import com.yoho.service.model.union.bo.*;
|
|
|
import com.yoho.service.model.union.request.*;
|
|
|
import com.yoho.service.model.union.response.*;
|
|
|
import com.yoho.unions.common.redis.GlobalRedisValueCache;
|
|
|
import com.yoho.unions.common.redis.*;
|
|
|
import com.yoho.unions.common.service.IQNUploadService;
|
|
|
import com.yoho.unions.constant.SendModelEnum;
|
|
|
import com.yoho.unions.dal.*;
|
...
|
...
|
@@ -37,10 +34,7 @@ import com.yoho.unions.helper.SendMessageHelper; |
|
|
import com.yoho.unions.server.service.IUnionShareRebateService;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.poi.hssf.record.ContinueRecord;
|
|
|
import org.apache.poi.hssf.record.PageBreakRecord;
|
|
|
import org.elasticsearch.common.collect.Maps;
|
|
|
import org.omg.CORBA.OBJ_ADAPTER;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
...
|
...
|
@@ -63,9 +57,6 @@ import com.yoho.unions.common.enums.BankEnum; |
|
|
import com.yoho.unions.common.enums.ShareOrdersKeyEnum;
|
|
|
import com.yoho.unions.common.enums.ShareOrdersStatusEnum;
|
|
|
import com.yoho.unions.common.enums.SocialMediaTypeEnum;
|
|
|
import com.yoho.unions.common.redis.RedisHashCache;
|
|
|
import com.yoho.unions.common.redis.RedisTemplate;
|
|
|
import com.yoho.unions.common.redis.RedisValueCache;
|
|
|
import com.yoho.unions.common.service.IBusinessExportService;
|
|
|
import com.yoho.unions.common.service.ISendSmsService;
|
|
|
import com.yoho.unions.common.utils.BankUtils;
|
...
|
...
|
@@ -160,11 +151,11 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
IUnionShareRebateService unionShareRebateService;
|
|
|
|
|
|
@Resource
|
|
|
RedisValueCache redisValueCache;
|
|
|
@Resource
|
|
|
RedisTemplate redisTemplate;
|
|
|
UnionRedisValueCache unionRedisValueCache;
|
|
|
|
|
|
@Resource( name = "yhProducer")
|
|
|
private YhProducer yhProducer;
|
|
|
|
|
|
@Resource(name = "core-config-reader")
|
|
|
private ConfigReader configReader;
|
|
|
|
...
|
...
|
@@ -175,7 +166,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
ServiceCaller serviceCaller;
|
|
|
|
|
|
@Autowired
|
|
|
private RedisHashCache redisHashCache;
|
|
|
private UnionRedisHashCache unionRedisHashCache;
|
|
|
|
|
|
@Autowired
|
|
|
private ISendSmsService sendSmsService;
|
...
|
...
|
@@ -415,7 +406,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
updateReq.setStatus((byte) 0);
|
|
|
updateReq.setUpdateTime(DateUtil.getCurrentTimeSecond());
|
|
|
int result = unionShareUserBankMapper.updateByPrimaryKeySelective(updateReq);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(),unionShareUserBank.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(),unionShareUserBank.getUid());
|
|
|
return result;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -545,7 +536,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
//审核不通过发短信--停用
|
|
|
// sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_REJECT_SMS_CONTENT, Lists.newArrayList(unionShareUserApply.getMobile()));
|
|
|
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),unionShareUserApply.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),unionShareUserApply.getUid());
|
|
|
return result;
|
|
|
} else {
|
|
|
//批量拒绝
|
...
|
...
|
@@ -572,7 +563,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
// List<String> mobileList = unionShareUserApplies.stream().map(UnionShareUserApply::getMobile).collect(Collectors.toList());
|
|
|
// sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_REJECT_SMS_CONTENT, Lists.newArrayList(mobileList));
|
|
|
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),uids);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),uids);
|
|
|
return result;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -620,8 +611,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
// 绑定unionType
|
|
|
relateUnionType(unionShareUserApply.getUid(),req.getId(),unionShareUserApply.getInviterUnionType(), unionShareUserApply.getMobile());
|
|
|
}
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),unionShareUserApply.getUid());
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),unionShareUserApply.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),unionShareUserApply.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),unionShareUserApply.getUid());
|
|
|
return result;
|
|
|
} else {
|
|
|
//批量通过
|
...
|
...
|
@@ -655,8 +646,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
} catch (Exception e) {
|
|
|
logger.error("relateUnionType error ,uid is {}",u.getUid());
|
|
|
}
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),u.getUid());
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),u.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),u.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),u.getUid());
|
|
|
});
|
|
|
logger.info("agreeApply end,req is {}", req);
|
|
|
return result;
|
...
|
...
|
@@ -1073,8 +1064,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
newObj.setUpdateTime(newObj.getCreateTime());
|
|
|
unionShareUserInviteMapper.insertSelective(newObj);
|
|
|
//清缓存
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),inviterUid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),inviterUid,"shareTotal");
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),inviterUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),inviterUid,"shareTotal");
|
|
|
return;
|
|
|
}
|
|
|
//老用户更新粉丝注册有赚7天内订单统计数据
|
...
|
...
|
@@ -1103,8 +1094,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
}
|
|
|
logger.info("updateInviterHistory end.inviterUid is {},unionShareUser is {},isNew is {},updateObj is {}.",inviterUid,unionShareUser,isNew,updateObj);
|
|
|
//清缓存
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),inviterUid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),inviterUid,"shareTotal");
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.INVITE_LIST.getPreKey(),inviterUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),inviterUid,"shareTotal");
|
|
|
}
|
|
|
|
|
|
@Database(ForceMaster = true)
|
...
|
...
|
@@ -1519,7 +1510,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
if (result > 0) {
|
|
|
sendBankCardToErp(insertReq);
|
|
|
}
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(),bo.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(),bo.getUid());
|
|
|
return result;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -2722,7 +2713,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
logger.info("queryActivityByDate.date is {},type is {}.",date,type);
|
|
|
int dateInt=Integer.valueOf(DateUtil.getDateStrBySecond(date, "yyyyMMdd"));
|
|
|
String activitiesCache = getFromRedis(ShareOrdersKeyEnum.ACTIVITY_ING_LIST, dateInt, String.class, type.toString());
|
|
|
// String activitiesCache = redisValueCache.get(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+dateStr, String.class);
|
|
|
// String activitiesCache = unionRedisValueCache.get(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+dateStr, String.class);
|
|
|
List<UnionShareOrdersActivity> activities;
|
|
|
if (activitiesCache != null) {
|
|
|
activities = JSONObject.parseArray(activitiesCache, UnionShareOrdersActivity.class);
|
...
|
...
|
@@ -2741,7 +2732,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
}
|
|
|
logger.info("queryActivityByDate.add to redis.value is {}",activities);
|
|
|
addToRedis(ShareOrdersKeyEnum.ACTIVITY_ING_LIST,dateInt,activities,type.toString());
|
|
|
// redisValueCache.set(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+dateStr,activities,ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getCacheTime(),TimeUnit.SECONDS);
|
|
|
// unionRedisValueCache.set(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+dateStr,activities,ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getCacheTime(),TimeUnit.SECONDS);
|
|
|
return activities;
|
|
|
}
|
|
|
//获取某时间段可参与活动的单数
|
...
|
...
|
@@ -2847,10 +2838,10 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
String dateStr=DateUtil.getDateStrBySecond(DateUtil.getLastDayStartInt(0),"yyyyMMdd");
|
|
|
String date1Str=DateUtil.getDateStrBySecond(DateUtil.getLastDayStartInt(1),"yyyyMMdd");
|
|
|
String date7Str=DateUtil.getDateStrBySecond(DateUtil.getLastDayStartInt(7),"yyyyMMdd");
|
|
|
redisTemplate.delete(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+dateStr);
|
|
|
redisTemplate.delete(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+date1Str);
|
|
|
redisTemplate.delete(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+date7Str);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ACTIVITY.getPreKey(),activityId);
|
|
|
unionRedisValueCache.delete(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+dateStr);
|
|
|
unionRedisValueCache.delete(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+date1Str);
|
|
|
unionRedisValueCache.delete(ShareOrdersKeyEnum.ACTIVITY_ING_LIST.getPreKey()+date7Str);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ACTIVITY.getPreKey(),activityId);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -3921,31 +3912,31 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
|
|
|
//存入redis,注意param的顺序
|
|
|
public void addToRedis(ShareOrdersKeyEnum se, int key,Object value, String... param) {
|
|
|
redisHashCache.put(se.getPreKey(),key,se.getHashKey(param),value,se.getCacheTime(), TimeUnit.SECONDS);
|
|
|
unionRedisHashCache.put(se.getPreKey(),key,se.getHashKey(param),value,se.getCacheTime(), TimeUnit.SECONDS);
|
|
|
}
|
|
|
|
|
|
//从redis取数据
|
|
|
public <T> T getFromRedis(ShareOrdersKeyEnum se, int key,Class<T> clazz, String... param) {
|
|
|
return redisHashCache.get(se.getPreKey(), key, se.getHashKey(param), clazz);
|
|
|
return unionRedisHashCache.get(se.getPreKey(), key, se.getHashKey(param), clazz);
|
|
|
}
|
|
|
//从redis删数据
|
|
|
public void delFromRedis(ShareOrdersKeyEnum se, int key, String... param) {
|
|
|
if (param == null || param.length == 0) {
|
|
|
redisHashCache.delete(se.getPreKey(), key);
|
|
|
unionRedisHashCache.delete(se.getPreKey(), key);
|
|
|
} else {
|
|
|
redisHashCache.delete(se.getPreKey(), key, se.getHashKey(param));
|
|
|
unionRedisHashCache.delete(se.getPreKey(), key, se.getHashKey(param));
|
|
|
}
|
|
|
}
|
|
|
public void clearShareOrderRedis(int uid) {
|
|
|
//清缓存
|
|
|
logger.info("clearShareOrderRedis,uid is {}",uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ORDER_INFO.getPreKey(),uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ORDER_LIST.getPreKey(),uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.SETTLEMENT_LIST.getPreKey(),uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(),uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.RECENTLY_ORDER_LIMIT_TEN.getPreKey(),uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.INVITE_YOHO_LIST.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ORDER_INFO.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ORDER_LIST.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.SETTLEMENT_LIST.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.UNION_TYPE.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.RECENTLY_ORDER_LIMIT_TEN.getPreKey(),uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.INVITE_YOHO_LIST.getPreKey(),uid);
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -4256,9 +4247,9 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
date.forEach(d -> {
|
|
|
updateOneMonthData(promoteUid, d);
|
|
|
});
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.RANK_INFO.getPreKey(),promoteUid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ORDER_STATISTICS_INFO.getPreKey(),promoteUid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ESTIMATE_LIST.getPreKey(),promoteUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.RANK_INFO.getPreKey(),promoteUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ORDER_STATISTICS_INFO.getPreKey(),promoteUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ESTIMATE_LIST.getPreKey(),promoteUid);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -4273,9 +4264,9 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
updateOneMonthData(promoteUid, d);
|
|
|
});
|
|
|
}
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.RANK_INFO.getPreKey(),promoteUid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ORDER_STATISTICS_INFO.getPreKey(),promoteUid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.ESTIMATE_LIST.getPreKey(),promoteUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.RANK_INFO.getPreKey(),promoteUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ORDER_STATISTICS_INFO.getPreKey(),promoteUid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.ESTIMATE_LIST.getPreKey(),promoteUid);
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -4358,7 +4349,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
}
|
|
|
if (bo.getNum() > -1) {
|
|
|
//不是手动执行,需要排除分布式其他机器已执行情况
|
|
|
UnionShareVirtualAddBo addBo=redisValueCache.get(VIRTUAL_ADD_KEY, UnionShareVirtualAddBo.class);
|
|
|
UnionShareVirtualAddBo addBo= unionRedisValueCache.get(VIRTUAL_ADD_KEY, UnionShareVirtualAddBo.class);
|
|
|
if (addBo == null) {
|
|
|
logger.info("dealWithVirtualUserTask end,query redis for virtual end.does not need");
|
|
|
return;
|
...
|
...
|
@@ -4380,8 +4371,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
unionShareOrdersMonthMapper.updateByPrimaryKeySelective(un);
|
|
|
});
|
|
|
logger.info("dealWithVirtualUserTask.bo is {},today is {},clear redis",bo,date);
|
|
|
redisTemplate.delete(VIRTUAL_ADD_KEY);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.RANK_LIST.getPreKey(),date);
|
|
|
unionRedisValueCache.delete(VIRTUAL_ADD_KEY);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.RANK_LIST.getPreKey(),date);
|
|
|
logger.info("dealWithVirtualUserTask.bo is {},today is {},clear redis end",bo,date);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -4394,7 +4385,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
addBo.setDate(date);
|
|
|
addBo.setTime(DateUtil.getCurrentTimeSecond());
|
|
|
logger.info("setVirtualAddToRedis.add to redis,addBo is {}",addBo);
|
|
|
redisValueCache.set(VIRTUAL_ADD_KEY,addBo,50,TimeUnit.HOURS);
|
|
|
unionRedisValueCache.set(VIRTUAL_ADD_KEY,addBo,50,TimeUnit.HOURS);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -4424,7 +4415,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
}else{
|
|
|
throw new ServiceException(ServiceError.UNION_IDENTITYCARD_EXIST_ERROR);
|
|
|
}
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(), bo.getUid());
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(), bo.getUid());
|
|
|
return result;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -4474,7 +4465,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
@Override
|
|
|
public void reject(int uid) {
|
|
|
unionShareUserIdentityCardMapper.updateStatusByUid(uid);
|
|
|
redisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(), uid);
|
|
|
unionRedisHashCache.delete(ShareOrdersKeyEnum.USER_SETTLEMENT.getPreKey(), uid);
|
|
|
try {
|
|
|
sendMessageHelper.sendMessage(uid, 5, DateUtil.getCurrentTimeSecond(), null);
|
|
|
} catch (Exception e) {
|
...
|
...
|
@@ -4484,7 +4475,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
|
|
|
private ResourcesBO getResourcesBO() {
|
|
|
// 从缓存查询
|
|
|
ResourcesBO resourcesCache=redisValueCache.get(ShareOrdersKeyEnum.IMG_RESOURCE_URL.getKey(),ResourcesBO.class);
|
|
|
ResourcesBO resourcesCache= unionRedisValueCache.get(ShareOrdersKeyEnum.IMG_RESOURCE_URL.getKey(),ResourcesBO.class);
|
|
|
if(resourcesCache!=null){
|
|
|
return resourcesCache;
|
|
|
}
|
...
|
...
|
@@ -4498,7 +4489,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
bo = serviceCaller.call(ResourcesServices.getResourcesPrimaryHome, request, ResourcesBO.class);
|
|
|
logger.debug("UnionShareServiceImpl ResourcesBO bo{}",JSON.toJSONString(bo));
|
|
|
// 存缓存
|
|
|
redisValueCache.set(ShareOrdersKeyEnum.IMG_RESOURCE_URL.getKey(),bo,IMG_URL_EXPIRE_TIME,TimeUnit.SECONDS);
|
|
|
unionRedisValueCache.set(ShareOrdersKeyEnum.IMG_RESOURCE_URL.getKey(),bo,IMG_URL_EXPIRE_TIME,TimeUnit.SECONDS);
|
|
|
return bo;
|
|
|
|
|
|
}
|
...
|
...
|
|