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;
|
|
/**
|
* 路北社区任务定时器
|
* @author lyq
|
*/
|
@Slf4j
|
@Component
|
public class LBJobHandler {
|
|
@Resource
|
private CommunityService communityService;
|
|
|
//定时任务 路北社区
|
@XxlJob("timedTaskVolunteerActivitiesJobHandler")
|
public ReturnT<String> timedTaskVolunteerActivitiesJobHandler(String param) throws Exception {
|
log.info("定时任务 每半小时检测一次路北社区 活动任务状态");
|
R r = communityService.timedTaskVolunteerActivitiesJobHandler();
|
log.info("执行结果【{}】", r.toString());
|
return ReturnT.SUCCESS;
|
}
|
}
|