|
|
|
@ -3,15 +3,18 @@ package au.com.royalpay.payment.manage.task;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.bill.BillOrderMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.OrderMapper;
|
|
|
|
|
import au.com.royalpay.payment.tools.scheduler.SynchronizedScheduler;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Created by wangning on 2018/1/2.
|
|
|
|
|
*/
|
|
|
|
@ -28,7 +31,7 @@ public class BillOrderCheckTask {
|
|
|
|
|
|
|
|
|
|
@Scheduled(cron = "0 0/3 * * * ?")
|
|
|
|
|
public void checkBillOrderCheck() {
|
|
|
|
|
synchronizedScheduler.executeProcess("manage_task:checkGreenChannel", 120_000, () -> {
|
|
|
|
|
synchronizedScheduler.executeProcess("manage_task:checkBillOrderCheck", 120_000, () -> {
|
|
|
|
|
List<String> orderIds = billOrderMapper.findOrderIdByStatus("0");
|
|
|
|
|
if (CollectionUtils.isEmpty(orderIds)) {
|
|
|
|
|
return;
|
|
|
|
|