|
@@ -7,6 +7,7 @@ import com.github.microservice.productcenter.client.type.RegionType;
|
|
|
import com.zhongshu.payment.client.model.order.AdminSeachOrderModel;
|
|
|
import com.zhongshu.payment.client.model.order.v2.OrderResult2Model;
|
|
|
import com.zhongshu.payment.client.service.v2.OrderService2;
|
|
|
+import com.zhongshu.payment.client.service.v2.PaymentService2;
|
|
|
import com.zhongshu.payment.client.type.JobFlowMap;
|
|
|
import com.zhongshu.payment.client.type.OrderType;
|
|
|
import com.zswl.cloud.springBatch.client.model.qiuxiang.OrderDelitResponse;
|
|
@@ -31,6 +32,9 @@ public class TaskLogic {
|
|
|
@Autowired
|
|
|
private RegionService regionService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PaymentService2 paymentService2;
|
|
|
+
|
|
|
public void qiuXiangSync() {
|
|
|
com.github.microservice.productcenter.client.ret.ResultContent<Page<RegionModel>> list = regionService.list("", RegionType.Park, Pageable.ofSize(10));
|
|
|
List<String> collect = list.getContent().get().map(it -> it.getCode()).collect(Collectors.toList());
|
|
@@ -49,4 +53,10 @@ public class TaskLogic {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public void queryWithdrawals() {
|
|
|
+ ResultContent<List<String>> listResultContent = paymentService2.unFinishWithdrawals();
|
|
|
+ listResultContent.getContent().forEach(it -> paymentService2.queryWithdrawals(it));
|
|
|
+
|
|
|
+ }
|
|
|
}
|