diff --git a/jsowell-pile/src/main/java/com/jsowell/adapay/common/AdaPayment.java b/jsowell-pile/src/main/java/com/jsowell/adapay/common/AdaPayment.java index c4851f205..a86befcd3 100644 --- a/jsowell-pile/src/main/java/com/jsowell/adapay/common/AdaPayment.java +++ b/jsowell-pile/src/main/java/com/jsowell/adapay/common/AdaPayment.java @@ -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; } diff --git a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java index ba6172d8d..85616b138 100644 --- a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java +++ b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java @@ -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 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 paymentListResult = null; + try { + paymentListResult = Payment.queryList(queryListParam, wechatAppId); + } catch (BaseAdaPayException e) { + throw new RuntimeException(e); + } + System.out.println("查询支付对象列表result:" + JSON.toJSONString(paymentListResult)); + } + }