mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
添加在途金额字段
This commit is contained in:
@@ -329,7 +329,8 @@ public class PaymentTestController {
|
||||
@Test
|
||||
public void testCreateConfirmReverse() throws BaseAdaPayException {
|
||||
List<String> list = getPaymentIdList(); // 批量支付确认撤销
|
||||
for (String paymentId : list) {
|
||||
|
||||
list.parallelStream().forEach(paymentId -> {
|
||||
// 查询支付确认id
|
||||
QueryPaymentConfirmDTO dto = new QueryPaymentConfirmDTO();
|
||||
dto.setPaymentId(paymentId);
|
||||
@@ -337,14 +338,19 @@ public class PaymentTestController {
|
||||
QueryPaymentConfirmDetailResponse response = adapayService.queryPaymentConfirmList(dto);
|
||||
if (response != null) {
|
||||
List<PaymentConfirmInfo> confirms = response.getPaymentConfirms();
|
||||
System.out.println("支付id:" + paymentId + ", 确认信息:" + JSON.toJSONString(confirms));
|
||||
// System.out.println("支付id:" + paymentId + ", 确认信息:" + JSON.toJSONString(confirms));
|
||||
if (CollectionUtils.isNotEmpty(confirms)) {
|
||||
for (PaymentConfirmInfo confirm : confirms) {
|
||||
adapayService.createConfirmReverse(confirm.getId(), wechatAppId1);
|
||||
try {
|
||||
adapayService.createConfirmReverse(confirm.getId(), wechatAppId1);
|
||||
} catch (BaseAdaPayException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user