Browse Source

支付通知未添加@TenantJob注解,导致定时任务报错

huangyemin 2 years ago
parent
commit
b982d87573

+ 2 - 0
yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/job/notify/PayNotifyJob.java

@@ -1,6 +1,7 @@
 package cn.iocoder.yudao.module.pay.job.notify;
 
 import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
+import cn.iocoder.yudao.framework.tenant.core.job.TenantJob;
 import cn.iocoder.yudao.module.pay.service.notify.PayNotifyService;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
@@ -15,6 +16,7 @@ import javax.annotation.Resource;
  */
 @Component
 @Slf4j
+@TenantJob
 public class PayNotifyJob implements JobHandler {
 
     @Resource