mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update校验未支付订单
This commit is contained in:
@@ -1106,7 +1106,12 @@ public class AdapayService {
|
||||
public List<AdaPayment> queryPaymentList(String startTime, String endTime) throws BaseAdaPayException {
|
||||
List<AdaPayment> resultList = Lists.newArrayList();
|
||||
String wechatAppId = "wxbb3e0d474569481d";
|
||||
String appId = "app_d0c80cb1-ffc8-48cb-a030-fe9bec823aaa";
|
||||
|
||||
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(wechatAppId);
|
||||
if (config == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR);
|
||||
}
|
||||
String appId = config.getAdapayAppId();
|
||||
long begin = DateUtils.dateStrToTimestamp(startTime); // 13位时间戳
|
||||
long end = DateUtils.dateStrToTimestamp(endTime); // 13位时间戳
|
||||
int pageNum = 0; // 页面容量,取值范围 1~20,默认值为 10
|
||||
@@ -1143,11 +1148,13 @@ public class AdapayService {
|
||||
/**
|
||||
* 查询支付列表
|
||||
*/
|
||||
public List<AdaPayment> queryPaymentByOrderNo(String orderNo) throws BaseAdaPayException {
|
||||
public List<AdaPayment> queryPaymentByOrderNo(String orderNo, String wechatAppId) throws BaseAdaPayException {
|
||||
List<AdaPayment> resultList = Lists.newArrayList();
|
||||
String wechatAppId = "wxbb3e0d474569481d";
|
||||
String appId = "app_d0c80cb1-ffc8-48cb-a030-fe9bec823aaa";
|
||||
|
||||
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(wechatAppId);
|
||||
if (config == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR);
|
||||
}
|
||||
String appId = config.getAdapayAppId();
|
||||
int pageNum = 0; // 页面容量,取值范围 1~20,默认值为 10
|
||||
int pageSize = 20; // 页面容量,取值范围 1~20,默认值为 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user