|
@@ -410,6 +410,8 @@ public class LiveAutoTaskServiceImpl implements ILiveAutoTaskService {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void directInsertLiveAutoTask(LiveAutoTask liveAutoTask) {
|
|
public void directInsertLiveAutoTask(LiveAutoTask liveAutoTask) {
|
|
|
|
|
+ redisCache.redisTemplate.opsForZSet().add("live:auto_task:" + liveAutoTask.getLiveId(), JSON.toJSONString(liveAutoTask), liveAutoTask.getAbsValue().getTime());
|
|
|
|
|
+ redisCache.redisTemplate.expire("live:auto_task:" + liveAutoTask.getLiveId(), 30, java.util.concurrent.TimeUnit.MINUTES);
|
|
|
baseMapper.insertLiveAutoTask(liveAutoTask);
|
|
baseMapper.insertLiveAutoTask(liveAutoTask);
|
|
|
}
|
|
}
|
|
|
|
|
|