update 校验支付单

This commit is contained in:
2023-10-24 13:47:42 +08:00
parent 7dabdf73ec
commit 238784d987
2 changed files with 65 additions and 0 deletions

View File

@@ -1085,4 +1085,30 @@ public class AdapayService {
log.info("查询账务流水param:{}, result:{}", JSON.toJSONString(dto), JSON.toJSONString(acctFlowList));
}
/**
* 查询支付列表
*/
public void queryPaymentList(String startTime, String endTime) {
String wechatAppId = "wxbb3e0d474569481d";
String appId = "app_d0c80cb1-ffc8-48cb-a030-fe9bec823aaa";
long begin = DateUtils.dateStrToTimestamp(startTime); // 13位时间戳
long end = DateUtils.dateStrToTimestamp(endTime); // 13位时间戳
// 根据时间段查询支付对象列表
Map<String, Object> queryListParam = Maps.newHashMap();
queryListParam.put("app_id", appId);
queryListParam.put("page_index", "1");
queryListParam.put("page_size", "20");
queryListParam.put("created_gte", begin);
queryListParam.put("created_lte", end);
System.out.println("查询支付对象列表请求参数:" + JSON.toJSONString(queryListParam));
Map<String, Object> paymentListResult = null;
try {
paymentListResult = Payment.queryList(queryListParam, wechatAppId);
} catch (BaseAdaPayException e) {
throw new RuntimeException(e);
}
System.out.println("查询支付对象列表result" + JSON.toJSONString(paymentListResult));
}
}