Commit b982d875732fdb3740984f969ec9eac2df4f0343
1 parent
eb48817f
支付通知未添加@TenantJob注解,导致定时任务报错
Showing
1 changed file
with
2 additions
and
0 deletions
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/job/notify/PayNotifyJob.java
| 1 | package cn.iocoder.yudao.module.pay.job.notify; | 1 | package cn.iocoder.yudao.module.pay.job.notify; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; | 3 | import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; |
| 4 | +import cn.iocoder.yudao.framework.tenant.core.job.TenantJob; | ||
| 4 | import cn.iocoder.yudao.module.pay.service.notify.PayNotifyService; | 5 | import cn.iocoder.yudao.module.pay.service.notify.PayNotifyService; |
| 5 | import lombok.extern.slf4j.Slf4j; | 6 | import lombok.extern.slf4j.Slf4j; |
| 6 | import org.springframework.stereotype.Component; | 7 | import org.springframework.stereotype.Component; |
| @@ -15,6 +16,7 @@ import javax.annotation.Resource; | @@ -15,6 +16,7 @@ import javax.annotation.Resource; | ||
| 15 | */ | 16 | */ |
| 16 | @Component | 17 | @Component |
| 17 | @Slf4j | 18 | @Slf4j |
| 19 | +@TenantJob | ||
| 18 | public class PayNotifyJob implements JobHandler { | 20 | public class PayNotifyJob implements JobHandler { |
| 19 | 21 | ||
| 20 | @Resource | 22 | @Resource |