feat:支付宝支付

This commit is contained in:
dzc committed 2026-05-08 17:21:15 +08:00
1 parent 4d3376067c
commit a16f5de2df
26 files changed
+439 -274

No files matched your search

@@ -13,7 +13,7 @@ import java.util.Arrays;
@Getter
public enum AppPlusPlatformTypeEnum {
WECHAT("10", "微信小程序"),
WECHAT("10", "微信"),
ALI_PAY("20", "支付宝"),
;
@@ -9,6 +9,8 @@ import lombok.Data;
@Data
public class ThirdAppPlusPayDto {
private Long mchId;
/**
* 子商户id
*/
@@ -1,21 +0,0 @@
package com.bsd.pjcloud.thirdparty.dto.appplus.pay.wechat;
import lombok.Data;
/**
* 查询订单入参
*/
@Data
public class ThirdMiniWechatQueryDto {
/**
* 微信订单号
*/
private String wechantOrderId;
/**
* 商户订单号
*/
private String orderId;
}
@@ -1,16 +0,0 @@
package com.bsd.pjcloud.thirdparty.dto.appplus.pay.wechat;
import lombok.Data;
/**
* 微信退款查询入参
*/
@Data
public class ThirdMiniWechatRefundQueryDto {
/**
* 退款id
*/
private String refundId;
}
@@ -54,6 +54,18 @@ public class ThirdPayOrderEntity extends Model<ThirdPayOrderEntity> {
@Schema(description = "用户id")
private Long userId;
/**
* 支付到账商户id
*/
@Schema(description = "支付到账商户id")
private Long mchId;
/**
* 商户支付配置
*/
@Schema(description = "商户支付配置")
private String mchPaySettingJson;
/**
* 用户code
*/
@@ -3,10 +3,13 @@ package com.bsd.pjcloud.thirdparty.vo.appplus.pay;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
@Data
public class ThirdMiniAppPayVo {
private HashMap<String, Object> appPlusPayParams;
private String payNo;
private Map<String, Object> appPlusPayParams;
}
@@ -13,6 +13,8 @@ import java.time.LocalDateTime;
@Data
public class ThirdALiPayCallbackVo {
private String msg_method;
/**
* 通知时间。通知的发送时间。格式为 yyyy-MM-dd HH:mm:ss。
*/
@@ -39,7 +39,7 @@ public class ThirdMiniJsapiPayVo {
private String code_url;
private HashMap<String, Object> miniAppPayParams;
private HashMap<String, Object> appPayParams;
public boolean isHttpSucess() {
return ObjectUtil.equals(ThirdMiniWechatQueryVo.SUCCESS, return_code);
@@ -1,140 +0,0 @@
package com.bsd.pjcloud.thirdparty.vo.appplus.pay.wechat;
import cn.hutool.core.util.ObjectUtil;
import lombok.Data;
/**
* 查询订单返回
*/
@Data
public class ThirdMiniWechatQueryVo {
public static final String SUCCESS = "SUCCESS";
private String return_code;
private String return_msg;
private String appid;
private String mch_id;
private String nonce_str;
private String sign;
private String result_code;
private String err_code;
private String err_code_des;
private String device_info;
/**
* 用户标识
*/
private String openid;
/**
* 是否关注公众账号
*/
private String is_subscribe;
/**
* 交易类型
*/
private String trade_type;
/**
* 交易状态
*/
private String trade_state;
/**
* 付款银行
*/
private String bank_type;
/**
* 标价金额
*/
private String total_fee;
/**
* 应结订单金额
*/
private String settlement_total_fee;
/**
* 标价币种
*/
private String fee_type;
/**
* 现金支付金额
*/
private String cash_fee;
/**
* 现金支付币种
*/
private String cash_fee_type;
/**
* 代金券金额
*/
private String coupon_fee;
/**
* 代金券使用数量
*/
private String coupon_count;
/**
* 微信支付订单号
*/
private String transaction_id;
/**
* 商户订单号
*/
private String out_trade_no;
/**
* 附加数据
*/
private String attach;
/**
* 支付完成时间
*/
private String time_end;
/**
* 交易状态描述
*/
private String trade_state_desc;
public boolean isHttpSucess() {
return ObjectUtil.equals(ThirdMiniWechatQueryVo.SUCCESS, return_code);
}
public boolean isPaySucess() {
return ObjectUtil.equals(ThirdMiniWechatQueryVo.SUCCESS, result_code);
}
public static String wechantError() {
return "<xml>" +
"<return_code><![CDATA[FAIL]]></return_code>" +
"<return_msg><![CDATA[FAIL]]></return_msg>" +
"</xml>";
}
public static String wechantSuccess() {
return "<xml>" +
" <return_code><![CDATA[SUCCESS]]></return_code>" +
" <return_msg><![CDATA[OK]]></return_msg>\n" +
"</xml>";
}
}
@@ -6,6 +6,8 @@ import lombok.Data;
@Data
public class ThirdPayOrderVo extends ThirdPayOrderEntity {
private String mchName;
private String username;
private String userPhone;