添加在途金额字段

This commit is contained in:
Guoqs
2025-10-15 15:47:36 +08:00
parent 50ffa032f3
commit b7c3e35144
4 changed files with 90 additions and 27 deletions

View File

@@ -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);
}
}
}
}
}
});
}
/**