mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 校验支付单
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user