优化批量查询汇付分账信息

This commit is contained in:
Guoqs
2025-10-13 15:27:31 +08:00
parent a5bd667339
commit ae31da0cb0
3 changed files with 279 additions and 71 deletions

View File

@@ -44,6 +44,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.StopWatch;
import java.io.BufferedReader;
import java.io.FileReader;
@@ -85,9 +86,13 @@ public class PaymentTestController {
*/
@Test
public void queryCreateConfirmReverseNew() throws BaseAdaPayException {
StopWatch stopWatch = new StopWatch("批量查询分账信息");
List<String> paymentIdList = getPaymentIdList(); // 查询分账信息
Map<String, List<String>> splitInfoMap = adapayService.getSplitInfoMapByPaymentIdList(paymentIdList);
System.out.println("splitInfoMap:" + JSON.toJSONString(splitInfoMap));
stopWatch.start();
// Map<String, List<String>> splitInfoMap = adapayService.getSplitInfoMapByPaymentIdList(paymentIdList);
Map<String, List<String>> splitInfoMap = adapayService.getSplitInfoMapByPaymentIdListNew(paymentIdList);
stopWatch.stop();
System.out.println("耗时:" + stopWatch.getLastTaskTimeMillis() + ", splitInfoMap:" + JSON.toJSONString(splitInfoMap));
}
public List<String> getPaymentIdList() {