|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.task;
|
|
|
|
|
|
import com.fs.common.annotation.QuartzRunnable;
|
|
|
+import com.fs.store.service.IFsStoreOrderService;
|
|
|
import com.fs.store.service.IFsStorePaymentService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -11,6 +12,8 @@ import org.springframework.stereotype.Service;
|
|
|
public class PaymentTask {
|
|
|
@Autowired
|
|
|
private IFsStorePaymentService fsStorePaymentService;
|
|
|
+ @Autowired
|
|
|
+ private IFsStoreOrderService fsStoreOrderService;
|
|
|
|
|
|
/**
|
|
|
* 补偿机制,定时反查台州银行
|
|
@@ -19,4 +22,11 @@ public class PaymentTask {
|
|
|
public void paymentSync() {
|
|
|
fsStorePaymentService.paymentSync();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 超时订单自动取消
|
|
|
+ */
|
|
|
+ public void orderCancel(){
|
|
|
+ fsStoreOrderService.orderCancel();
|
|
|
+ }
|
|
|
}
|