|
|
@ -95,7 +95,7 @@ public class ConsumeServiceImpl implements ConsumeService {
|
|
|
|
* 1.构建userId维度的链路信息 数据结构list:{key,list}
|
|
|
|
* 1.构建userId维度的链路信息 数据结构list:{key,list}
|
|
|
|
* key:userId,listValue:[{timestamp,state,businessId},{timestamp,state,businessId}]
|
|
|
|
* key:userId,listValue:[{timestamp,state,businessId},{timestamp,state,businessId}]
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
SimpleAnchorInfo userAnchorInfo = SimpleAnchorInfo.builder().businessId(info.getBusinessId()).state(info.getState()).timestamp(info.getLogTimestamp()).build();
|
|
|
|
SimpleAnchorInfo userAnchorInfo = SimpleAnchorInfo.builder().businessId(info.getBusinessId()).state(info.getState()).timestamp(info.getLogTimestamp()).messageId(info.getMessageId()).build();
|
|
|
|
for (String id : info.getIds()) {
|
|
|
|
for (String id : info.getIds()) {
|
|
|
|
redisFutures.add(redisAsyncCommands.lpush(id.getBytes(), JSON.toJSONString(userAnchorInfo).getBytes()));
|
|
|
|
redisFutures.add(redisAsyncCommands.lpush(id.getBytes(), JSON.toJSONString(userAnchorInfo).getBytes()));
|
|
|
|
redisFutures.add(redisAsyncCommands.expire(id.getBytes(), (DateUtil.endOfDay(new Date()).getTime() - DateUtil.current()) / 1000));
|
|
|
|
redisFutures.add(redisAsyncCommands.expire(id.getBytes(), (DateUtil.endOfDay(new Date()).getTime() - DateUtil.current()) / 1000));
|
|
|
|