|
|
@@ -14,13 +14,11 @@ import com.izouma.nineth.utils.excel.BigIntegerConverter;
|
|
|
import com.izouma.nineth.utils.excel.LocalDateConverter;
|
|
|
import com.izouma.nineth.utils.excel.LocalDateTimeConverter;
|
|
|
import lombok.Data;
|
|
|
-import org.apache.commons.collections.MapUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.junit.Test;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.time.ZoneId;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
@@ -180,20 +178,12 @@ public class AdapayTest {
|
|
|
int page = 0;
|
|
|
paymentParams.put("app_id", appId);
|
|
|
paymentParams.put("page_size", "20");
|
|
|
- paymentParams.put("created_gte", start.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
|
|
- paymentParams.put("created_lte", end.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
|
|
|
+ paymentParams.put("out_trans_id", "2022022522001490791443239943");
|
|
|
|
|
|
- boolean hasMore = true;
|
|
|
JSONArray list = new JSONArray();
|
|
|
- while (hasMore) {
|
|
|
- paymentParams.put("page_index", ++page);
|
|
|
- Map<String, Object> paymentList = Payment.queryList(paymentParams);
|
|
|
- if (paymentList.get("payments") != null) {
|
|
|
- list.addAll((JSONArray) paymentList.get("payments"));
|
|
|
- }
|
|
|
- hasMore = MapUtils.getBooleanValue(paymentList, "has_more");
|
|
|
- }
|
|
|
- System.out.println(list);
|
|
|
+ paymentParams.put("page_index", ++page);
|
|
|
+ Map<String, Object> paymentList = Payment.queryList(paymentParams);
|
|
|
+ System.out.println(JSON.toJSONString(paymentList,SerializerFeature.PrettyFormat));
|
|
|
}
|
|
|
|
|
|
@Test
|