|
|
|
@ -1,15 +1,16 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.task;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.ofei.TopUpOrderMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.ofei.core.OfeiServer;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.ofei.TopUpOrderMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.ofei.core.OfeiServer;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Created by wangning on 2018/1/2.
|
|
|
|
@ -24,6 +25,9 @@ public class OfeiOrderCheckTask {
|
|
|
|
|
@Scheduled(cron = "0 0/20 * * * ?")
|
|
|
|
|
public void checkGreenChannel(){
|
|
|
|
|
List<String> orderIds = topUpOrderMapper.findOrderIdByStatus("10");
|
|
|
|
|
if(CollectionUtils.isEmpty(orderIds)){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
for (String orderId : orderIds) {
|
|
|
|
|
ofeiServer.checkOrder(orderId);
|
|
|
|
|
}
|
|
|
|
|