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

@@ -27,6 +27,7 @@ public class AdaPayment {
* Timestamp
*
* 支付创建时的 10 位时间戳
* 收银台对象创建时间戳
*/
private String created_time;
@@ -151,4 +152,42 @@ public class AdaPayment {
*/
private String invalid_param;
// 支付模式delay- 延时分账模式;值为空时,表示实时分账。
private String pay_mode;
// 手续费金额
private String fee_amt;
// 分账对象信息列表,详见 分账对象信息列表
private String div_members;
// 支付确认对象 列表
private String payment_confirms;
// 手续费收取模式O-商户手续费账户扣取手续费I-交易金额中扣取手续费值为空时默认值为I。
private String fee_mode;
// 若为延时分账时,已发起支付撤销的总金额
private String reserved_amt;
// 若为实时分账时,已发起退款的总金额
private String refunded_amt;
// 若为延时分账时,已发起支付确认的总金额
private String confirmed_amt;
// 若为微信渠道则为微信openid若为支付宝渠道则为buyerid
private String open_id;
// 支付宝买家登录账号
private String buyer_logon_id;
// 优惠券信息,使用 JSON格式
private String coupon_infos;
// 现金支付金额
private String cash_pay_amt;
// 优惠金额
private String discount_amt;
}

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));
}
}