From 2f65a830dcbea60c4e1854cd08a59410c68db724 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 02 七月 2025 16:16:04 +0800 Subject: [PATCH] 视频搜索接口,视频es索引加发布时间字段,重构视频es索引的sql完善 --- lmk-job/src/main/java/cn/lili/job/VideoJob.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/lmk-job/src/main/java/cn/lili/job/VideoJob.java b/lmk-job/src/main/java/cn/lili/job/VideoJob.java index 15035f1..e2df6d1 100644 --- a/lmk-job/src/main/java/cn/lili/job/VideoJob.java +++ b/lmk-job/src/main/java/cn/lili/job/VideoJob.java @@ -72,4 +72,19 @@ } } + /** + * 瑙嗛鐐硅禐鏁扮粺璁� + * + * @throws Exception + */ + @XxlJob("videoThumbsUpNumJob") + public void videoThumbsUpNumJob() throws Exception { + XxlJobHelper.log("寮�濮嬫墽琛岋細瑙嗛鐐硅禐鏁扮粺璁�"); + + List<CollectTypeNumVO> numList = thumbsUpRecordService.countNumGroupByVideo(); + if (CollectionUtils.isNotEmpty(numList)) { + videoService.updateThumbsUpNumBatch(numList); + } + } + } -- Gitblit v1.8.0