mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
优化批量查询汇付分账信息
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user