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 DiscussJobHandler { @Resource private CommunityService communityService; @XxlJob("timedTaskDiscussInspectStatusJobHandler") public ReturnT timedTaskDiscussInspectStatusJobHandler(String param) throws Exception { log.info("定时任务扫描议事投票状态"); R r = communityService.timedTaskDiscussInspectStatus(); log.info("执行结果【{}】", r.toString()); return ReturnT.SUCCESS; } }