Commit bf6049eb authored by 李健华's avatar 李健华

测试xxl-job版本

parent e08cd7c2
......@@ -414,7 +414,7 @@
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>2.1.2</version>
<version>2.1.0</version>
</dependency>
</dependencies>
......
......@@ -178,7 +178,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
// 微信公众号关注数据更新
executeWechatFollowStatus("", period);
// 企业微信关注数据更新
// executeEnterpriseFollowStatus("", period);
executeEnterpriseFollowStatus("", period);
}
private JsonResult executeEnterpriseFollowStatus(String s, String period) {
......
......@@ -4,18 +4,18 @@ import cn.quantgroup.xyqb.service.wechat.IWechatFollowService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class WechatFollowStatusJobHandler {
@JobHandler(value = "WechatFollowStatusJobHandler")
public class WechatFollowStatusJobHandler extends IJobHandler {
@Autowired
private IWechatFollowService wechatFollowService;
@XxlJob(value = "WechatFollowStatusJobHandler")
@Override
public ReturnT<String> execute(String s) throws Exception {
wechatFollowService.executeTask();
return ReturnT.SUCCESS;
return SUCCESS;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment