mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
package com.panzhihua.timejob.jobhandler;
 
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.service.community.CommunityService;
import com.panzhihua.common.service.jinhui.JinhuiCommunityService;
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;
 
/**
 * 金汇社区任务定时器
 * @author lyq
 */
@Slf4j
@Component
public class JinhuiJobHandler {
 
    @Resource
    private JinhuiCommunityService communityService;
 
 
    //定时任务  路北社区
    @XxlJob("timedTaskJinhuiActivitiesJobHandler")
    public ReturnT<String> timedTaskJinhuiActivitiesJobHandler(String param) throws Exception {
        log.info("定时任务 每半小时检测一次路北社区 活动任务状态");
        R r = communityService.timedTaskJinhuiActivitiesJobHandler();
        log.info("执行结果【{}】", r.toString());
        return ReturnT.SUCCESS;
    }
}