DESKTOP-71BH0QO\L、ming
2021-04-29 17935dcdfa3d85c48d99f4065ed5ac1bd7bd2c7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.panzhihua.timejob.jobhandler;
 
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.service.community.CommunityService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
 
/**
 * @auther lyq
 * @create 2021-04-28 09:21:45
 * @describe 邻里圈相关
 */
@Slf4j
@Component
public class NeighborCircleJobHandler {
 
    @Resource
    private CommunityService communityService;
 
    /**
     * 定时任务更新邻里圈近3天评论数/点赞数/浏览量
     * @return 刷新个数
     * @throws Exception 出现的异常
     */
    @XxlJob("timedtaskpartybuildingstatusJobHandler")
    public ReturnT<String> timedtaskpartybuildingstatusJobHandler(String param) throws Exception {
        log.info("定时任务更新邻里圈近3天评论数/点赞数/浏览量");
        R r=communityService.timedTaskNeighborCircleRecord();
        log.info("执行结果【{}】",r.toString());
        return ReturnT.SUCCESS;
    }
 
}