...
|
...
|
@@ -68,7 +68,7 @@ public class DrawlineUserActivityInfoServiceImpl implements IDrawlineUserActivit |
|
|
|
|
|
// 3、从redis中获取数据
|
|
|
String redisKeySuffix = uid + ":" + userType + ":" + activityId;
|
|
|
DlUserActivityInfoRespBO userActivityInfoRespBO = redisValueCache.get(CacheKeyEnum.DRAWLINE_ACTIVITY, redisKeySuffix, DlUserActivityInfoRespBO.class);
|
|
|
DlUserActivityInfoRespBO userActivityInfoRespBO = redisValueCache.get(CacheKeyEnum.DRAWLINE_USERACTIVITY, redisKeySuffix, DlUserActivityInfoRespBO.class);
|
|
|
if (null != userActivityInfoRespBO) {
|
|
|
logger.debug("getUserActivityInfo: get userActivityInfoRespBO from redis success. userActivityInfoRespBO is {}", userActivityInfoRespBO);
|
|
|
return userActivityInfoRespBO;
|
...
|
...
|
@@ -104,6 +104,7 @@ public class DrawlineUserActivityInfoServiceImpl implements IDrawlineUserActivit |
|
|
logger.debug("getUserActivityInfo: drawlineUserQueueDAO.selectByUidAndActivityIdAndUserType. uid is {}, activityId is {}, userType is {}, drawlineUserQueue is {}", uid, activityId, userType,
|
|
|
drawlineUserQueue);
|
|
|
if (drawlineUserQueue == null) {
|
|
|
redisValueCache.setIfAbsent(CacheKeyEnum.DRAWLINE_USERACTIVITY, redisKeySuffix, JSONArray.toJSONString(userActivityInfoRespBO), TimeUnit.SECONDS);
|
|
|
return userActivityInfoRespBO;
|
|
|
}
|
|
|
// 设置排队信息
|
...
|
...
|
@@ -144,7 +145,7 @@ public class DrawlineUserActivityInfoServiceImpl implements IDrawlineUserActivit |
|
|
}
|
|
|
|
|
|
// 11、保存数据至redis
|
|
|
redisValueCache.setIfAbsent(CacheKeyEnum.DRAWLINE_QUEUELIST, redisKeySuffix, JSONArray.toJSONString(userActivityInfoRespBO), TimeUnit.SECONDS);
|
|
|
redisValueCache.setIfAbsent(CacheKeyEnum.DRAWLINE_USERACTIVITY, redisKeySuffix, JSONArray.toJSONString(userActivityInfoRespBO), TimeUnit.SECONDS);
|
|
|
|
|
|
return userActivityInfoRespBO;
|
|
|
}
|
...
|
...
|
|