Commit f3287159 by 阳浪

积分任务

parent 92b1508f
...@@ -3,6 +3,7 @@ package com.yizhi.xxl.job.executor.service.jobhandler; ...@@ -3,6 +3,7 @@ package com.yizhi.xxl.job.executor.service.jobhandler;
import com.xxl.job.core.biz.model.ReturnT; import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob; import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger; import com.xxl.job.core.log.XxlJobLogger;
import com.yizhi.point.application.feign.PointListenerClients;
import com.yizhi.xxl.job.executor.service.job.*; import com.yizhi.xxl.job.executor.service.job.*;
import io.swagger.models.auth.In; import io.swagger.models.auth.In;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -69,6 +70,8 @@ public class BeanJobCenter { ...@@ -69,6 +70,8 @@ public class BeanJobCenter {
private PointJob pointJob; private PointJob pointJob;
@Autowired @Autowired
private PointDetailsJob pointDetailsJob; private PointDetailsJob pointDetailsJob;
@Autowired
private PointListenerClients pointListenerClients;
// 0 0/5 * * * ? // 0 0/5 * * * ?
@XxlJob("organizationRedisJob") @XxlJob("organizationRedisJob")
...@@ -355,4 +358,16 @@ public class BeanJobCenter { ...@@ -355,4 +358,16 @@ public class BeanJobCenter {
return ReturnT.SUCCESS; return ReturnT.SUCCESS;
} }
@XxlJob("hadPointList")
public ReturnT<String> hadPointList(String param) {
try {
pointListenerClients.hadPointList();
}catch (Exception e) {
XxlJobLogger.log(e);
return ReturnT.FAIL;
}
return ReturnT.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