Commit 17327a76 by 崔彦峰

svn to git

0 parents
Showing 123 changed files with 4807 additions and 0 deletions
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>framework-rpc-api</artifactId>
<version>1.0.2-SNAPSHOT</version>
</parent>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-payment-api</artifactId>
<version>0.0.3-SNAPSHOT</version>
<name>rpc-dj-payment-api</name>
<properties>
<deploy.scanPackage>cn.com.glsx.dj.payment.remote</deploy.scanPackage>
</properties>
<build>
<plugins>
<plugin>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>rpc-api-deploy-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-payment-api</artifactId>
<version>0.0.3-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* 交易下单请求参数
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
public class CreateOrderRequestDTO implements Serializable{
private static final long serialVersionUID = -8466608482741461127L;
/**
* 嘀加商户号
*/
private Integer merchantId;
/**
* 当前调起支付的小程序APPID
*/
private String subAppId;
/**
* 微信支付分配的子商户号(不用传)
*/
@Deprecated
private String subMerchantId;
/**
* 商户订单号(由业务方传)
*/
private String orderCode;
/**
* 小程序用户的OPENID
*/
private String subOpenId;
/**
* 商品描述
*/
private String goodsDesc;
/**
* 附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据
*/
private String attach;
/**
* 订单总金额,只能为整数(单位:分)
*/
private Integer totalFee;
/**
* 订单生成时间,格式为yyyyMMddHHmmss
*/
private String timeStart;
/**
* 订单失效时间,格式为yyyyMMddHHmmss
*/
private String timeExpire;
/**
* 支持IPV4和IPV6两种格式的IP地址。调用微信支付API的机器IP
*/
private String spbillCreateIp;
/**
* 接收微信支付异步通知回调地址
*/
private String notifyUrl;
public String getSubAppId() {
return subAppId;
}
public void setSubAppId(String subAppId) {
this.subAppId = subAppId;
}
public String getSubMerchantId() {
return subMerchantId;
}
public void setSubMerchantId(String subMerchantId) {
this.subMerchantId = subMerchantId;
}
public String getOrderCode() {
return orderCode;
}
public void setOrderCode(String orderCode) {
this.orderCode = orderCode;
}
public String getSubOpenId() {
return subOpenId;
}
public void setSubOpenId(String subOpenId) {
this.subOpenId = subOpenId;
}
public String getGoodsDesc() {
return goodsDesc;
}
public void setGoodsDesc(String goodsDesc) {
this.goodsDesc = goodsDesc;
}
public String getAttach() {
return attach;
}
public void setAttach(String attach) {
this.attach = attach;
}
public Integer getTotalFee() {
return totalFee;
}
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
public String getTimeStart() {
return timeStart;
}
public void setTimeStart(String timeStart) {
this.timeStart = timeStart;
}
public String getTimeExpire() {
return timeExpire;
}
public void setTimeExpire(String timeExpire) {
this.timeExpire = timeExpire;
}
public String getSpbillCreateIp() {
return spbillCreateIp;
}
public void setSpbillCreateIp(String spbillCreateIp) {
this.spbillCreateIp = spbillCreateIp;
}
public String getNotifyUrl() {
return notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public Integer getMerchantId() {
return merchantId;
}
public void setMerchantId(Integer merchantId) {
this.merchantId = merchantId;
}
@Override
public String toString() {
return "CreateOrderRequestDTO [merchantId=" + merchantId
+ ", subAppId=" + subAppId + ", subMerchantId=" + subMerchantId
+ ", orderCode=" + orderCode + ", subOpenId=" + subOpenId
+ ", goodsDesc=" + goodsDesc + ", attach=" + attach
+ ", totalFee=" + totalFee + ", timeStart=" + timeStart
+ ", timeExpire=" + timeExpire + ", spbillCreateIp="
+ spbillCreateIp + ", notifyUrl=" + notifyUrl + "]";
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: CreateOrderResponseDTO.java
* @Description: 统一下单响应
* @author Alvin
* @date 2019年5月4日 上午11:06:06
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class CreateOrderResponseDTO implements Serializable{
private static final long serialVersionUID = -3073088868027214273L;
/**
* 时间戳从1970年1月1日00:00:00至今的秒数,即当前的时间
*/
private String timeStamp;
/**
* 随机字符串,长度为32个字符以下
*/
private String nonceStr;
/**
* 统一下单接口返回的 prepay_id 参数值
*/
private String prepayId;
/**
* 签名算法,暂支持 MD5
*/
private String signType;
/**
* 签名
*/
private String paySign;
/**
*交易系统内部订单号
*/
private String outTradeNo;
public String getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(String timeStamp) {
this.timeStamp = timeStamp;
}
public String getNonceStr() {
return nonceStr;
}
public void setNonceStr(String nonceStr) {
this.nonceStr = nonceStr;
}
public String getPrepayId() {
return prepayId;
}
public void setPrepayId(String prepayId) {
this.prepayId = prepayId;
}
public String getSignType() {
return signType;
}
public void setSignType(String signType) {
this.signType = signType;
}
public String getPaySign() {
return paySign;
}
public void setPaySign(String paySign) {
this.paySign = paySign;
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
@Override
public String toString() {
return "CreateOrderResponseDTO [timeStamp=" + timeStamp + ", nonceStr="
+ nonceStr + ", prepayId=" + prepayId + ", signType="
+ signType + ", paySign=" + paySign + ", outTradeNo="
+ outTradeNo + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: PayNotifyRequestDTO.java
* @Description: 支付回调通知请求参数
* @author Alvin
* @date 2019年5月4日 下午3:26:57
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class PayNotifyRequestDTO implements Serializable{
private static final long serialVersionUID = -5104116865545063942L;
/**
* 通知xml报文
*/
private String notifyXml;
public String getNotifyXml() {
return notifyXml;
}
public void setNotifyXml(String notifyXml) {
this.notifyXml = notifyXml;
}
@Override
public String toString() {
return "PayNotifyRequestDTO [notifyXml=" + notifyXml + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: PayNotifyResponseDTO.java
* @Description: 支付回调通知处理结果响应
* @author Alvin
* @date 2019年5月4日 下午3:33:56
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class PayNotifyResponseDTO implements Serializable{
private static final long serialVersionUID = 2781682143411598187L;
/**
* 商户处理后同步返回给微信xml报文
*/
private String returnXml;
/**
* 商户系统内部订单号
*/
private String outTradeNo;
/**
* 附加数据
*/
private String attach;
public String getReturnXml() {
return returnXml;
}
public void setReturnXml(String returnXml) {
this.returnXml = returnXml;
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getAttach() {
return attach;
}
public void setAttach(String attach) {
this.attach = attach;
}
@Override
public String toString() {
return "PayNotifyResponseDTO [returnXml=" + returnXml + ", outTradeNo="
+ outTradeNo + ", attach=" + attach + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: PayRefundNotifyResponseDTO.java
* @Description: 支付退款通知响应
* @author Alvin
* @date 2020年6月7日 下午2:43:55
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
public class PayRefundNotifyResponseDTO implements Serializable{
private static final long serialVersionUID = 2308324943646948905L;
/**
* 商户处理后同步返回给微信xml报文
*/
private String returnXml;
/**
* 商户系统内部订单号
*/
private String outTradeNo;
/**
* 商户退款单号(由业务方传)
*/
private String outRefundNo;
/**
* 订单总金额,只能为整数(单位:分)
*/
private Integer totalFee;
/**
* 申请退款金额,单位为分,只能为整数,可部分退款
*/
private Integer refundFee;
/**
* 应结订单金额
*/
private Integer settlementTotalFee;
/**
* 退款金额(申请退款金额 - 非充值代金券退款金额)
*/
private Integer settlementRefundFee;
/**
* 退款状态(SUCCESS—退款成功;REFUNDCLOSE—退款关闭;PROCESSING—退款处理中;CHANGE—退款异常)
*/
private String refundStatus;
public String getReturnXml() {
return returnXml;
}
public void setReturnXml(String returnXml) {
this.returnXml = returnXml;
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOutRefundNo() {
return outRefundNo;
}
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo;
}
public Integer getTotalFee() {
return totalFee;
}
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
public Integer getRefundFee() {
return refundFee;
}
public void setRefundFee(Integer refundFee) {
this.refundFee = refundFee;
}
public Integer getSettlementTotalFee() {
return settlementTotalFee;
}
public void setSettlementTotalFee(Integer settlementTotalFee) {
this.settlementTotalFee = settlementTotalFee;
}
public Integer getSettlementRefundFee() {
return settlementRefundFee;
}
public void setSettlementRefundFee(Integer settlementRefundFee) {
this.settlementRefundFee = settlementRefundFee;
}
public String getRefundStatus() {
return refundStatus;
}
public void setRefundStatus(String refundStatus) {
this.refundStatus = refundStatus;
}
@Override
public String toString() {
return "PayRefundResponseDTO [returnXml=" + returnXml + ", outTradeNo="
+ outTradeNo + ", outRefundNo=" + outRefundNo + ", totalFee="
+ totalFee + ", refundFee=" + refundFee
+ ", settlementTotalFee=" + settlementTotalFee
+ ", settlementRefundFee=" + settlementRefundFee
+ ", refundStatus=" + refundStatus + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: PayRefundQueryRequestDTO.java
* @Description: 退款查询请求
* @author Alvin
* @date 2019年6月27日 下午4:40:24
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class PayRefundQueryRequestDTO implements Serializable {
private static final long serialVersionUID = 3117503851644230352L;
/**
* 商户订单号:商户系统内部的订单号,32个字符内、可包含字母(refund_id、out_refund_no、out_trade_no、transaction_id四个参数必填一个)
*/
private String outTradeNo;
/**
* 商户系统内部的退款单号,商户系统内部唯一,只能是数字、大小写字母_-|*@ ,同一退款单号多次请求只退一笔。
*/
private String outRefundNo;
/**
* 偏移量,当部分退款次数超过10次时可使用,表示返回的查询结果从这个偏移量开始取记录
*/
private Integer offset;
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOutRefundNo() {
return outRefundNo;
}
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo;
}
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
@Override
public String toString() {
return "PayRefundQueryRequestDTO [outTradeNo=" + outTradeNo
+ ", outRefundNo=" + outRefundNo + ", offset=" + offset + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
import java.util.List;
/**
* @Title: PayRefundQueryResponseDTO.java
* @Description: 退款查询响应
* @author Alvin
* @date 2019年6月27日 下午4:43:27
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class PayRefundQueryResponseDTO implements Serializable{
private static final long serialVersionUID = 2949210786613537747L;
/**
* 商户订单号:商户系统内部的订单号,32个字符内、可包含字母
*/
private String outTradeNo;
/**
* 订单总金额,单位为分
*/
private Integer totalFee;
/**
* 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额
*/
private Integer settlementTotalFee;
/**
* 货币种类,默认人民币:CNY
*/
private String feeType;
/**
* 现金支付金额,单位为分
*/
private Integer cashFee;
/**
* 当前返回退款笔数
*/
private Integer refundCount;
/**
* 订单总共已发生的部分退款次数,当请求参数传入offset后有返回
*/
private Integer totalRefundCount;
/**
* 退款子订单列表
*/
private List<RefundSubOrderDTO> refundSubOrders;
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public Integer getTotalFee() {
return totalFee;
}
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
public Integer getSettlementTotalFee() {
return settlementTotalFee;
}
public void setSettlementTotalFee(Integer settlementTotalFee) {
this.settlementTotalFee = settlementTotalFee;
}
public String getFeeType() {
return feeType;
}
public void setFeeType(String feeType) {
this.feeType = feeType;
}
public Integer getCashFee() {
return cashFee;
}
public void setCashFee(Integer cashFee) {
this.cashFee = cashFee;
}
public Integer getRefundCount() {
return refundCount;
}
public void setRefundCount(Integer refundCount) {
this.refundCount = refundCount;
}
public Integer getTotalRefundCount() {
return totalRefundCount;
}
public void setTotalRefundCount(Integer totalRefundCount) {
this.totalRefundCount = totalRefundCount;
}
public List<RefundSubOrderDTO> getRefundSubOrders() {
return refundSubOrders;
}
public void setRefundSubOrders(List<RefundSubOrderDTO> refundSubOrders) {
this.refundSubOrders = refundSubOrders;
}
@Override
public String toString() {
return "PayRefundQueryResponseDTO [outTradeNo=" + outTradeNo
+ ", totalFee=" + totalFee + ", settlementTotalFee="
+ settlementTotalFee + ", feeType=" + feeType + ", cashFee="
+ cashFee + ", refundCount=" + refundCount
+ ", totalRefundCount=" + totalRefundCount
+ ", refundSubOrders=" + refundSubOrders + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
import cn.com.glsx.dj.payment.enums.RefundAccountEnum;
/**
* @Title: PayRefundRequestDTO.java
* @Description: 支付退款请求参数
* @author Alvin
* @date 2019年6月26日 下午2:44:29
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class PayRefundRequestDTO implements Serializable {
private static final long serialVersionUID = -3564633486742154542L;
/**
* 商户订单号:商户系统内部的订单号,32个字符内、可包含字母
*/
private String outTradeNo;
/**
* 商户系统内部的退款单号,商户系统内部唯一,只能是数字、大小写字母_-|*@ ,同一退款单号多次请求只退一笔。
*/
private String outRefundNo;
/**
* 申请退款总金额,单位为分,可以做部分退款
*/
private Integer refundFee;
/**
* 退款原因
*/
private String refundDesc;
/**
* 退款资金来源:
仅针对老资金流商户使用
REFUND_SOURCE_UNSETTLED_FUNDS---未结算资金退款(默认使用未结算资金退款)
REFUND_SOURCE_RECHARGE_FUNDS---可用余额退款
*/
private RefundAccountEnum refundAccount;
/**
* 异步接收微信支付退款结果通知的回调地址,通知URL必须为外网可访问的url,不允许带参数
如果参数中传了notify_url,则商户平台上配置的回调地址将不会生效
*/
private String notifyUrl;
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOutRefundNo() {
return outRefundNo;
}
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo;
}
public Integer getRefundFee() {
return refundFee;
}
public void setRefundFee(Integer refundFee) {
this.refundFee = refundFee;
}
public String getRefundDesc() {
return refundDesc;
}
public void setRefundDesc(String refundDesc) {
this.refundDesc = refundDesc;
}
public RefundAccountEnum getRefundAccount() {
return refundAccount;
}
public void setRefundAccount(RefundAccountEnum refundAccount) {
this.refundAccount = refundAccount;
}
public String getNotifyUrl() {
return notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
@Override
public String toString() {
return "PayRefundRequestDTO [outTradeNo=" + outTradeNo
+ ", outRefundNo=" + outRefundNo + ", refundFee=" + refundFee
+ ", refundDesc=" + refundDesc + ", refundAccount="
+ refundAccount + ", notifyUrl=" + notifyUrl + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: QueryOrderRequestDTO.java
* @Description: 查询交易订单请求参数
* @author Alvin
* @date 2019年5月4日 下午2:36:34
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class QueryOrderRequestDTO implements Serializable{
private static final long serialVersionUID = 8399403395896894722L;
/**
*交易系统内部订单号
*/
private String outTradeNo;
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
@Override
public String toString() {
return "QueryOrderRequestDTO [outTradeNo=" + outTradeNo + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: QueryOrderResponseDTO.java
* @Description: 查询交易订单响应
* @author Alvin
* @date 2019年5月4日 下午2:39:28
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class QueryOrderResponseDTO implements Serializable{
private static final long serialVersionUID = 3604829275244293217L;
/**
* 用户在子商户appid下的唯一标识
*/
private String subOpenId;
/**
SUCCESS—支付成功
REFUND—转入退款
NOTPAY—未支付
CLOSED—已关闭
REVOKED—已撤销(刷卡支付)
USERPAYING--用户支付中
PAYERROR--支付失败(其他原因,如银行返回失败)
*/
private String tradeState;
/**
* 订单总金额,单位为分
*/
private Integer totalFee;
/**
* 商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一
*/
private String outTradeNo;
/**
* 商家数据包
*/
private String attach;
/**
* 订单支付时间,格式为yyyyMMddHHmmss
*/
private String timeEnd;
public String getSubOpenId() {
return subOpenId;
}
public void setSubOpenId(String subOpenId) {
this.subOpenId = subOpenId;
}
public String getTradeState() {
return tradeState;
}
public void setTradeState(String tradeState) {
this.tradeState = tradeState;
}
public Integer getTotalFee() {
return totalFee;
}
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getAttach() {
return attach;
}
public void setAttach(String attach) {
this.attach = attach;
}
public String getTimeEnd() {
return timeEnd;
}
public void setTimeEnd(String timeEnd) {
this.timeEnd = timeEnd;
}
@Override
public String toString() {
return "QueryOrderResponseDTO [subOpenId=" + subOpenId
+ ", tradeState=" + tradeState + ", totalFee=" + totalFee
+ ", outTradeNo=" + outTradeNo + ", attach=" + attach
+ ", timeEnd=" + timeEnd + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: RefundSubOrderDTO.java
* @Description: 退款子订单
* @author Alvin
* @date 2019年5月29日 下午5:17:33
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class RefundSubOrderDTO implements Serializable{
private static final long serialVersionUID = 1550620370095074601L;
/**
* 商户系统内部的退款单号,商户系统内部唯一
*/
private String outRefundNo;
/**
* 微信退款单号
*/
private String refundId;
/**
* 退款渠道
ORIGINAL—原路退款
BALANCE—退回到余额
OTHER_BALANCE—原账户异常退到其他余额账户
OTHER_BANKCARD—原银行卡异常退到其他银行卡
*/
private String refundChannel;
/**
* 退款总金额,单位为分,可以做部分退款
*/
private Integer refundFee;
/**
* 退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额
*/
private Integer settlementRefundFee;
/**
退款状态:
SUCCESS—退款成功
REFUNDCLOSE—退款关闭。
PROCESSING—退款处理中
CHANGE—退款异常,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往商户平台(pay.weixin.qq.com)-交易中心,手动处理此笔退款
*/
private String refundStatus;
/**
退款资金来源
REFUND_SOURCE_RECHARGE_FUNDS---可用余额退款/基本账户
REFUND_SOURCE_UNSETTLED_FUNDS---未结算资金退款
*/
private String refundAccount;
/**
退款入账账户
取当前退款单的退款入账方
1)退回银行卡:
{银行名称}{卡类型}{卡尾号}
2)退回支付用户零钱:
支付用户零钱
3)退还商户:
商户基本账户
商户结算银行账户
4)退回支付用户零钱通:
支付用户零钱通
*/
private String refundRecvAccount;
/**
* 退款成功时间,当退款状态为退款成功时有返回
*/
private String refundSuccessTime;
public String getOutRefundNo() {
return outRefundNo;
}
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo;
}
public String getRefundId() {
return refundId;
}
public void setRefundId(String refundId) {
this.refundId = refundId;
}
public String getRefundChannel() {
return refundChannel;
}
public void setRefundChannel(String refundChannel) {
this.refundChannel = refundChannel;
}
public Integer getRefundFee() {
return refundFee;
}
public void setRefundFee(Integer refundFee) {
this.refundFee = refundFee;
}
public Integer getSettlementRefundFee() {
return settlementRefundFee;
}
public void setSettlementRefundFee(Integer settlementRefundFee) {
this.settlementRefundFee = settlementRefundFee;
}
public String getRefundStatus() {
return refundStatus;
}
public void setRefundStatus(String refundStatus) {
this.refundStatus = refundStatus;
}
public String getRefundAccount() {
return refundAccount;
}
public void setRefundAccount(String refundAccount) {
this.refundAccount = refundAccount;
}
public String getRefundSuccessTime() {
return refundSuccessTime;
}
public void setRefundSuccessTime(String refundSuccessTime) {
this.refundSuccessTime = refundSuccessTime;
}
public String getRefundRecvAccount() {
return refundRecvAccount;
}
public void setRefundRecvAccount(String refundRecvAccount) {
this.refundRecvAccount = refundRecvAccount;
}
@Override
public String toString() {
return "RefundSubOrderDTO [outRefundNo=" + outRefundNo + ", refundId="
+ refundId + ", refundChannel=" + refundChannel
+ ", refundFee=" + refundFee + ", settlementRefundFee="
+ settlementRefundFee + ", refundStatus=" + refundStatus
+ ", refundAccount=" + refundAccount + ", refundRecvAccount="
+ refundRecvAccount + ", refundSuccessTime="
+ refundSuccessTime + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import java.io.Serializable;
/**
* @Title: TradeSubCouponDTO.java
* @Description: 交易订单优惠券
* @author Alvin
* @date 2020年6月17日 上午11:37:33
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
public class TradeSubCouponDTO implements Serializable{
private static final long serialVersionUID = -5449111103769419038L;
/**
* CASH--充值代金券
NO_CASH---非充值代金券
并且订单使用了免充值券后有返回(取值:CASH、NO_CASH)。$n为下标,从0开始编号,举例:coupon_type_0
注意:只有下单时订单使用了优惠,回调通知才会返回券信息。
下列情况可能导致订单不可以享受优惠
*/
private String couponType;
/**
* 代金券ID,$n为下标,从0开始编号
注意:只有下单时订单使用了优惠,回调通知才会返回券信息。
下列情况可能导致订单不可以享受优惠
*/
private String couponId;
/**
* 单个代金券支付金额,$n为下标,从0开始编号
*/
private Integer couponFee;
public String getCouponType() {
return couponType;
}
public void setCouponType(String couponType) {
this.couponType = couponType;
}
public String getCouponId() {
return couponId;
}
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public Integer getCouponFee() {
return couponFee;
}
public void setCouponFee(Integer couponFee) {
this.couponFee = couponFee;
}
@Override
public String toString() {
return "TradeSubCouponDTO [couponType=" + couponType + ", couponId="
+ couponId + ", couponFee=" + couponFee + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import cn.com.glsx.dj.payment.enums.WechatMiniprogramBelongEnum;
import cn.com.glsx.dj.payment.model.WechatPaymentConfig;
/**
* @Title: WechatPaymentConfigDTO.java
* @Description:
* @author zengqi
* @date 2021年6月6日 上午11:01:14
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
public class WechatPaymentConfigDTO extends WechatPaymentConfig {
private static final long serialVersionUID = 1745809398048329930L;
/**
* 微信应用ID
*/
private String appId;
/**
* 微信小程序归属(嘀加平台定义)
*/
private WechatMiniprogramBelongEnum belong;
/**
* 特约商户号(代注册小程序才有)
*/
private String specialMerchantId;
/**
* 子应用ID(代注册小程序才有)
*/
private String subAppId;
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public WechatMiniprogramBelongEnum getBelong() {
return belong;
}
public void setBelong(WechatMiniprogramBelongEnum belong) {
this.belong = belong;
}
public String getSpecialMerchantId() {
return specialMerchantId;
}
public void setSpecialMerchantId(String specialMerchantId) {
this.specialMerchantId = specialMerchantId;
}
public String getSubAppId() {
return subAppId;
}
public void setSubAppId(String subAppId) {
this.subAppId = subAppId;
}
@Override
public String toString() {
return "WechatPaymentConfigDTO [appId=" + appId + ", belong=" + belong
+ ", specialMerchantId=" + specialMerchantId + ", subAppId="
+ subAppId + ", toString()=" + super.toString() + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import cn.com.glsx.dj.payment.enums.RefundAccountEnum;
import cn.com.glsx.dj.payment.enums.RefundChannelEnum;
import cn.com.glsx.dj.payment.enums.RefundStatusEnum;
import cn.com.glsx.dj.payment.model.WechatRefundOrder;
/**
* @Title: WechatRefundOrderDTO.java
* @Description:
* @author Alvin
* @date 2020年6月11日 下午3:03:28
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
public class WechatRefundOrderDTO extends WechatRefundOrder {
private static final long serialVersionUID = 9223113351978978576L;
private String createdDateStart;
private String createdDateEnd;
private String refundSuccessTimeStart;
private String refundSuccessTimeEnd;
public String getCreatedDateStart() {
return createdDateStart;
}
public void setCreatedDateStart(String createdDateStart) {
this.createdDateStart = createdDateStart;
}
public String getCreatedDateEnd() {
return createdDateEnd;
}
public void setCreatedDateEnd(String createdDateEnd) {
this.createdDateEnd = createdDateEnd;
}
public String getRefundSuccessTimeStart() {
return refundSuccessTimeStart;
}
public void setRefundSuccessTimeStart(String refundSuccessTimeStart) {
this.refundSuccessTimeStart = refundSuccessTimeStart;
}
public String getRefundSuccessTimeEnd() {
return refundSuccessTimeEnd;
}
public void setRefundSuccessTimeEnd(String refundSuccessTimeEnd) {
this.refundSuccessTimeEnd = refundSuccessTimeEnd;
}
@Override
public String getRefundStatus() {
RefundStatusEnum refundStatusEnum = RefundStatusEnum.get(super.getRefundStatus());
return refundStatusEnum != null ? refundStatusEnum.getDisplayName():super.getRefundStatus();
}
public String getRefundStatusOriginal(){
return super.getRefundStatus();
}
@Override
public String getRefundChannel() {
RefundChannelEnum refundChannelEnum = RefundChannelEnum.get(super.getRefundChannel());
return refundChannelEnum != null ? refundChannelEnum.getDisplayName():super.getRefundChannel();
}
public String getRefundChannelOriginal(){
return super.getRefundChannel();
}
@Override
public String getRefundAccount() {
RefundAccountEnum refundAccountEnum = RefundAccountEnum.get(super.getRefundAccount());
return refundAccountEnum != null ? refundAccountEnum.getDisplayName():super.getRefundAccount();
}
public String getRefundAccountOriginal(){
return super.getRefundAccount();
}
@Override
public String toString() {
return "WechatRefundOrderDTO [createdDateStart=" + createdDateStart
+ ", createdDateEnd=" + createdDateEnd
+ ", refundSuccessTimeStart=" + refundSuccessTimeStart
+ ", refundSuccessTimeEnd=" + refundSuccessTimeEnd
+ ", toString()=" + super.toString() + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import cn.com.glsx.dj.payment.model.WechatSpecialMerchant;
/**
* @Title: WechatSpecialMerchantDTO.java
* @Description: 特约商户信息
* @author Alvin
* @date 2019年5月7日 下午4:15:16
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class WechatSpecialMerchantDTO extends WechatSpecialMerchant {
private static final long serialVersionUID = 6780645158176063378L;
/**
* 商户名称
*/
@ApiModelProperty(name = "merchantName", notes = "商户名称", dataType = "string", example = "深圳广联赛讯有限公司")
private String merchantName;
/**
* 应用名称
*/
@ApiModelProperty(name = "appName", notes = "应用名称", dataType = "string", example = "嘀加")
private String appName;
/**
* 应用头像
*/
@ApiModelProperty(name = "appLogo", notes = "应用头像", dataType = "string", example = "http://img01.glsx.com.cn/logo.png")
private String appLogo;
/**
* 更新开始时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(name = "beginDate", notes = "更新开始时间", dataType = "date", required = true, example = "2019-01-01 00:00:00")
private Date beginDate;
/**
* 更新截止时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(name = "endDate", notes = "更新截止时间", dataType = "date", required = true, example = "2019-01-31 00:00:00")
private Date endDate;
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getAppLogo() {
return appLogo;
}
public void setAppLogo(String appLogo) {
this.appLogo = appLogo;
}
public Date getBeginDate() {
return beginDate;
}
public void setBeginDate(Date beginDate) {
this.beginDate = beginDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
@Override
public String toString() {
return "WechatSpecialMerchantDTO [merchantName=" + merchantName
+ ", appName=" + appName + ", appLogo=" + appLogo
+ ", beginDate=" + beginDate + ", endDate=" + endDate
+ ", toString()=" + super.toString() + "]";
}
}
package cn.com.glsx.dj.payment.dto;
import cn.com.glsx.dj.payment.enums.TradeStatusEnum;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
/**
* @Title: WechatTradeOrderDTO.java
* @Description:
* @author Alvin
* @date 2020年6月11日 上午11:35:49
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
public class WechatTradeOrderDTO extends WechatTradeOrder {
private static final long serialVersionUID = -3383601553647019414L;
/**
* 交易订单创建开始时间
*/
private String createdDateStart;
/**
* 交易订单创建结束时间
*/
private String createdDateEnd;
/**
* 交易订单交易开始时间
*/
private String tradeTimeStart;
/**
* 交易订单交易结束时间
*/
private String tradeTimeEnd;
public String getCreatedDateStart() {
return createdDateStart;
}
public void setCreatedDateStart(String createdDateStart) {
this.createdDateStart = createdDateStart;
}
public String getCreatedDateEnd() {
return createdDateEnd;
}
public void setCreatedDateEnd(String createdDateEnd) {
this.createdDateEnd = createdDateEnd;
}
public String getTradeTimeStart() {
return tradeTimeStart;
}
public void setTradeTimeStart(String tradeTimeStart) {
this.tradeTimeStart = tradeTimeStart;
}
public String getTradeTimeEnd() {
return tradeTimeEnd;
}
public void setTradeTimeEnd(String tradeTimeEnd) {
this.tradeTimeEnd = tradeTimeEnd;
}
@Override
public String getTradeStatus() {
TradeStatusEnum tradeStatusEnum = TradeStatusEnum.get(super.getTradeStatus());
return tradeStatusEnum != null ? tradeStatusEnum.getDisplayName():super.getTradeStatus();
}
public String getTradeStatusOriginal() {
return super.getTradeStatus();
}
@Override
public String toString() {
return "WechatTradeOrderDTO [createdDateStart=" + createdDateStart
+ ", createdDateEnd=" + createdDateEnd + ", tradeTimeStart="
+ tradeTimeStart + ", tradeTimeEnd=" + tradeTimeEnd
+ ", toString()=" + super.toString() + "]";
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.ErrorEnum;
/**
* 支付错误定义枚举
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
public enum PaymentErrorEnum implements ErrorEnum {
// 服务器异常
SERVER_ERROR("1001", "服务器异常"),
// 业务异常
SERVICE_ERROR("1002", "业务异常"),
// 支付结果通知异常
PAYMENT_NOTIFY_ERROR("100201", "支付结果通知异常"),
// 退款结果通知解密异常
REFUND_INFO_DECRYPT_ERROR("100202", "退款结果通知解密异常"),
// 验签失败
VALIDATE_FAILED("2001", "验签失败"),
// 统一下单失败
UNIFIED_ORDER_FAILED("200101", "统一下单失败"),
// 查询订单失败
QUERY_ORDER_FAILED("200102", "查询订单失败"),
// 支付结果通知验签失败
PAYMENT_NOTIFY_VERIFY_FAILED("200103", "支付结果通知验签失败"),
// 关闭交易订单失败
CLOSE_ORDER_FAILED("200104", "关闭交易订单失败"),
// 订单退款通知失败
ORDER_REFUND_NOTIFY_FAILED("200105", "订单退款通知失败"),
// 订单退款失败
ORDER_REFUND_FAILED("200106", "订单退款失败"),
// 订单退款查询失败
ORDER_REFUND_QUERY_FAILED("200107", "订单退款失败"),
// 获取支付配置失败
GET_PAYMENT_CONFIG_FAILED("200108", "获取支付配置失败"),
// 参数为空
PARAMETER_NULL("2002", "参数为空"),
// 交易订单号为空
OUT_TRADE_NO_NULL("200201", "交易订单号为空"),
// 微信应用ID为空
APPID_NULL("200202", "微信应用ID为空"),
// 特约商户类型为空
SPECIAL_MERCHANT_TYPE_NULL("200203", "特约商户类型为空"),
// 支付结果通知报文为空
PAYMENT_NOTIFY_XML_NULL("200204", "支付结果通知报文为空"),
// 退款订单号为空
OUT_REFUND_NO_NULL("200205", "退款订单号为空"),
// 数据库异常
DATABASE_ERROR("3001", "数据库异常"),
// 数据已存在
DATA_EXIST("4001", "数据已存在"),
// 特约商户关系已存在
SPECIAL_MERCHANT_REF_EXIST("400101", "特约商户关系已存在"),
// 数据不存在
DATA_NOT_EXIST("4002", "数据不存在"),
// 交易订单不存在
TRADE_ORDER_NOT_EXIST("400201", "交易订单不存在"),
// 退款订单不存在
REFUND_ORDER_NOT_EXIST("400202", "退款订单不存在"),
// 数据无效
DATA_INVALID("4003", "数据无效");
private String value;
private String displayName;
static Map<String, PaymentErrorEnum> enumMap = new HashMap<String, PaymentErrorEnum>();
static{
for(PaymentErrorEnum code:PaymentErrorEnum.values()){
enumMap.put(code.getValue(), code);
}
}
PaymentErrorEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
public static PaymentErrorEnum getEnum(String value){
return enumMap.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: RefundAccountEnum.java
* @Description: 退款资金来源
* @author Alvin
* @date 2019年3月12日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public enum RefundAccountEnum implements BaseEnum<RefundAccountEnum, String>{
// 可用余额退款/基本账户
REFUND_SOURCE_RECHARGE_FUNDS("REFUND_SOURCE_RECHARGE_FUNDS", "可用余额退款/基本账户"),
// 未结算资金退款
REFUND_SOURCE_UNSETTLED_FUNDS("REFUND_SOURCE_UNSETTLED_FUNDS", "未结算资金退款");
private String value;
private String displayName;
private static Map<String, RefundAccountEnum> map;
private RefundAccountEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, RefundAccountEnum>();
}
map.put(value, this);
}
public static RefundAccountEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: RefundChannelEnum.java
* @Description: 退款渠道
* @author Alvin
* @date 2019年3月12日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public enum RefundChannelEnum implements BaseEnum<RefundChannelEnum, String>{
// 原路退款
ORIGINAL("ORIGINAL", "原路退款"),
// 退回到余额
BALANCE("BALANCE", "退回到余额"),
// 原账户异常退到其他余额账户
OTHER_BALANCE("OTHER_BALANCE", "原账户异常退到其他余额账户"),
// 原银行卡异常退到其他银行卡
OTHER_BANKCARD("OTHER_BANKCARD", "原银行卡异常退到其他银行卡");
private String value;
private String displayName;
private static Map<String, RefundChannelEnum> map;
private RefundChannelEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, RefundChannelEnum>();
}
map.put(value, this);
}
public static RefundChannelEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: RefundStatusEnum.java
* @Description: 退款状态码
* @author Alvin
* @date 2019年3月12日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public enum RefundStatusEnum implements BaseEnum<RefundStatusEnum, String>{
// 退款状态码:退款成功
SUCCESS("SUCCESS", "退款成功"),
// 退款状态码:退款关闭
REFUNDCLOSE("REFUNDCLOSE", "退款关闭"),
// 退款状态码:退款处理中
PROCESSING("PROCESSING", "退款处理中"),
// 退款状态码:退款异常
CHANGE("CHANGE", "退款异常");
private String value;
private String displayName;
private static Map<String, RefundStatusEnum> map;
private RefundStatusEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, RefundStatusEnum>();
}
map.put(value, this);
}
public static RefundStatusEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: SpecialMerchantTypeEnum.java
* @Description: 特约商户类型
* @author Alvin
* @date 2019年3月12日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public enum SpecialMerchantTypeEnum implements BaseEnum<SpecialMerchantTypeEnum, String>{
// 特约商户类型:平台商户
PLATFORM("PLATFORM", "平台商户"),
// 特约商户类型:普通商户
COMMON("COMMON", "普通商户");
private String value;
private String displayName;
private static Map<String, SpecialMerchantTypeEnum> map;
private SpecialMerchantTypeEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, SpecialMerchantTypeEnum>();
}
map.put(value, this);
}
public static SpecialMerchantTypeEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: TradeCodeEnum.java
* @Description: 交易状态码
* @author Alvin
* @date 2019年3月12日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public enum TradeCodeEnum implements BaseEnum<TradeCodeEnum, String>{
// 交易状态码:成功
SUCCESS("SUCCESS", "成功"),
// 交易状态码:失败
FAIL("FAIL", "失败"),
// 交易状态码:完成
OK("OK", "完成");
private String value;
private String displayName;
private static Map<String, TradeCodeEnum> map;
private TradeCodeEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, TradeCodeEnum>();
}
map.put(value, this);
}
public static TradeCodeEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: TradeStatusEnum.java
* @Description: 交易状态(SUCCESS—支付成功;REFUND—转入退款;NOTPAY—未支付;CLOSED—已关闭;REVOKED—已撤销;USERPAYING--用户支付中;PAYERROR--支付失败)
* @author Alvin
* @date 2019年3月12日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public enum TradeStatusEnum implements BaseEnum<TradeStatusEnum, String>{
// 交易状态:支付成功
SUCCESS("SUCCESS", "支付成功"),
// 交易状态:转入退款
REFUND("REFUND", "转入退款"),
// 交易状态:未支付
NOTPAY("NOTPAY", "未支付"),
// 交易状态:已关闭
CLOSED("CLOSED", "已关闭"),
// 交易状态:已撤销
REVOKED("REVOKED", "已撤销"),
// 交易状态:用户支付中
USERPAYING("USERPAYING", "用户支付中"),
// 交易状态:支付失败
PAYERROR("PAYERROR", "支付失败");
private String value;
private String displayName;
private static Map<String, TradeStatusEnum> map;
private TradeStatusEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, TradeStatusEnum>();
}
map.put(value, this);
}
public static TradeStatusEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.enums;
import java.util.HashMap;
import java.util.Map;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* @Title: WechatMiniprogramTypeEnum.java
* @Description: 小程序归属
* @author Alvin
* @date 2021年6月6日 下午9:23:46
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2021
*/
public enum WechatMiniprogramBelongEnum implements BaseEnum<WechatMiniprogramBelongEnum, String>{
// 嘀加平台
PLATFORM("PLATFORM", "嘀加平台"),
// 平台代注册
PROXY("PROXY", "平台代注册"),
// 商户私有
PRIVATE("PRIVATE", "商户私有");
private String value;
private String displayName;
private static Map<String, WechatMiniprogramBelongEnum> map;
private WechatMiniprogramBelongEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
put();
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
private void put(){
if(map == null){
map = new HashMap<String, WechatMiniprogramBelongEnum>();
}
map.put(value, this);
}
public static WechatMiniprogramBelongEnum get(String value){
return map.get(value);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue().toString()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.dj.payment.model;
import java.util.Date;
import javax.persistence.*;
@Table(name = "dj_wechat_app_payment_config")
public class WechatAppPaymentConfig {
/**
* 主键
*/
@Id
@Column(name = "ID")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 微信应用ID
*/
@Column(name = "APP_ID")
private String appId;
/**
* 支付配置ID(dj_wechat_payment_config.id)
*/
@Column(name = "PAYMENT_CONFIG_ID")
private Long paymentConfigId;
/**
* 创建人
*/
@Column(name = "CREATED_BY")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "CREATED_DATE")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "UPDATED_BY")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "UPDATED_DATE")
private Date updatedDate;
/**
* 删除标识
*/
@Column(name = "DELETED_FLAG")
private String deletedFlag;
/**
* 获取主键
*
* @return ID - 主键
*/
public Integer getId() {
return id;
}
/**
* 设置主键
*
* @param id 主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取微信应用ID
*
* @return APP_ID - 微信应用ID
*/
public String getAppId() {
return appId;
}
/**
* 设置微信应用ID
*
* @param appId 微信应用ID
*/
public void setAppId(String appId) {
this.appId = appId == null ? null : appId.trim();
}
/**
* 获取支付配置ID(dj_wechat_payment_config.id)
*
* @return PAYMENT_CONFIG_ID - 支付配置ID(dj_wechat_payment_config.id)
*/
public Long getPaymentConfigId() {
return paymentConfigId;
}
/**
* 设置支付配置ID(dj_wechat_payment_config.id)
*
* @param paymentConfigId 支付配置ID(dj_wechat_payment_config.id)
*/
public void setPaymentConfigId(Long paymentConfigId) {
this.paymentConfigId = paymentConfigId;
}
/**
* 获取创建人
*
* @return CREATED_BY - 创建人
*/
public String getCreatedBy() {
return createdBy;
}
/**
* 设置创建人
*
* @param createdBy 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy == null ? null : createdBy.trim();
}
/**
* 获取创建时间
*
* @return CREATED_DATE - 创建时间
*/
public Date getCreatedDate() {
return createdDate;
}
/**
* 设置创建时间
*
* @param createdDate 创建时间
*/
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
/**
* 获取修改人
*
* @return UPDATED_BY - 修改人
*/
public String getUpdatedBy() {
return updatedBy;
}
/**
* 设置修改人
*
* @param updatedBy 修改人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy == null ? null : updatedBy.trim();
}
/**
* 获取修改时间
*
* @return UPDATED_DATE - 修改时间
*/
public Date getUpdatedDate() {
return updatedDate;
}
/**
* 设置修改时间
*
* @param updatedDate 修改时间
*/
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
/**
* 获取删除标识
*
* @return DELETED_FLAG - 删除标识
*/
public String getDeletedFlag() {
return deletedFlag;
}
/**
* 设置删除标识
*
* @param deletedFlag 删除标识
*/
public void setDeletedFlag(String deletedFlag) {
this.deletedFlag = deletedFlag == null ? null : deletedFlag.trim();
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.model;
import javax.persistence.Table;
import cn.com.glsx.framework.core.beans.BaseModel;
@Table(name = "dj_wechat_payment_config")
public class WechatPaymentConfig extends BaseModel{
private static final long serialVersionUID = 8028338675610401511L;
/**
* PAY_MERCHANT_ID:支付商户号
*/
private String payMerchantId;
/**
* PRINCIPAL_NAME:支付商户主体
*/
private String principalName;
/**
* MERCHANT_ID:嘀加平台商户号
*/
private Integer merchantId;
/**
* PARTNER_KEY:支付合作秘钥
*/
private String partnerKey;
/**
* SIGN_TYPE:签名类型(目前支持HMAC-SHA256和MD5,默认为MD5)
*/
private String signType;
/**
* TRADE_TYPE:交易类型(小程序取值如下:JSAPI)
*/
private String tradeType;
/**
* KEY_PASS:证书密码
*/
private String keyPass;
/**
* KEY_PATH:证书路径
*/
private String keyPath;
/**
* SETTLEMENT_CYCLE:结算周期(单位:天,T+N)
*/
private Integer settlementCycle;
/**
* SETTLEMENT_RATE:结算费率(单位:百分比,0.6%)
*/
private Double settlementRate;
public String getPayMerchantId() {
return payMerchantId;
}
public void setPayMerchantId(String payMerchantId) {
this.payMerchantId = payMerchantId == null ? null : payMerchantId.trim();
}
public Integer getMerchantId() {
return merchantId;
}
public void setMerchantId(Integer merchantId) {
this.merchantId = merchantId;
}
public String getPartnerKey() {
return partnerKey;
}
public void setPartnerKey(String partnerKey) {
this.partnerKey = partnerKey == null ? null : partnerKey.trim();
}
public String getSignType() {
return signType;
}
public void setSignType(String signType) {
this.signType = signType == null ? null : signType.trim();
}
public String getTradeType() {
return tradeType;
}
public void setTradeType(String tradeType) {
this.tradeType = tradeType == null ? null : tradeType.trim();
}
public String getKeyPass() {
return keyPass;
}
public void setKeyPass(String keyPass) {
this.keyPass = keyPass == null ? null : keyPass.trim();
}
public String getKeyPath() {
return keyPath;
}
public void setKeyPath(String keyPath) {
this.keyPath = keyPath == null ? null : keyPath.trim();
}
public String getPrincipalName() {
return principalName;
}
public void setPrincipalName(String principalName) {
this.principalName = principalName;
}
public Integer getSettlementCycle() {
return settlementCycle;
}
public void setSettlementCycle(Integer settlementCycle) {
this.settlementCycle = settlementCycle;
}
public Double getSettlementRate() {
return settlementRate;
}
public void setSettlementRate(Double settlementRate) {
this.settlementRate = settlementRate;
}
@Override
public String toString() {
return "WechatPaymentConfig [payMerchantId=" + payMerchantId + ", principalName="
+ principalName + ", merchantId=" + merchantId
+ ", partnerKey=" + partnerKey + ", signType=" + signType
+ ", tradeType=" + tradeType + ", keyPass=" + keyPass
+ ", keyPath=" + keyPath + ", settlementCycle="
+ settlementCycle + ", settlementRate=" + settlementRate
+ ", toString()=" + super.toString() + "]";
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.model;
import javax.persistence.Column;
import javax.persistence.Table;
import cn.com.glsx.framework.core.beans.BaseModel;
@Table(name = "dj_wechat_payment_private_channel")
public class WechatPaymentPrivateChannel extends BaseModel{
private static final long serialVersionUID = -5745975278842179825L;
/**
* 门店商户号
*/
@Column(name = "MERCHANT_ID")
private Integer merchantId;
/**
* 微信应用ID
*/
@Column(name = "APP_ID")
private String appId;
/**
* 支付配置ID(dj_wechat_payment_config.id)
*/
@Column(name = "PRIVATE_CONFIG_ID")
private Long privateConfigId;
/**
* 获取门店商户号
*
* @return MERCHANT_ID - 门店商户号
*/
public Integer getMerchantId() {
return merchantId;
}
/**
* 设置门店商户号
*
* @param merchantId 门店商户号
*/
public void setMerchantId(Integer merchantId) {
this.merchantId = merchantId;
}
/**
* 获取微信应用ID
*
* @return APP_ID - 微信应用ID
*/
public String getAppId() {
return appId;
}
/**
* 设置微信应用ID
*
* @param appId 微信应用ID
*/
public void setAppId(String appId) {
this.appId = appId == null ? null : appId.trim();
}
/**
* 获取支付配置ID(dj_wechat_payment_config.id)
*
* @return PRIVATE_CONFIG_ID - 支付配置ID(dj_wechat_payment_config.id)
*/
public Long getPrivateConfigId() {
return privateConfigId;
}
/**
* 设置支付配置ID(dj_wechat_payment_config.id)
*
* @param privateConfigId 支付配置ID(dj_wechat_payment_config.id)
*/
public void setPrivateConfigId(Long privateConfigId) {
this.privateConfigId = privateConfigId;
}
@Override
public String toString() {
return "WechatPaymentPrivateChannel [merchantId=" + merchantId
+ ", appId=" + appId + ", privateConfigId=" + privateConfigId
+ ", toString()=" + super.toString() + "]";
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.model;
import javax.persistence.Table;
import cn.com.glsx.framework.core.beans.BaseModel;
@Table(name = "dj_wechat_refund_order")
public class WechatRefundOrder extends BaseModel{
private static final long serialVersionUID = 9144757934908226271L;
/**
* APP_ID:服务商应用ID(微信分配的公众账号ID)
*/
private String appId;
/**
* MERCHANT_ID:商户号(微信支付分配的商户号)
*/
private String merchantId;
/**
* SUB_APP_ID:当前调起支付的小程序APPID
*/
private String subAppId;
/**
* SUB_MERCHANT_ID:微信支付分配的子商户号
*/
private String subMerchantId;
/**
* OUT_TRADE_NO:商户系统内部交易订单号,要求32个字符内,只能是数字、大小写字母_-|*且在同一个商户号下唯一
*/
private String outTradeNo;
/**
* OUT_REFUND_NO:商户退款单号(由业务方传)
*/
private String outRefundNo;
/**
* TRANSACTION_ID:微信交易号
*/
private String transactionId;
/**
* REFUND_ID:微信退款单号
*/
private String refundId;
/**
* TOTAL_FEE:订单总金额,只能为整数(单位:分)
*/
private Integer totalFee;
/**
* REFUND_FEE:申请退款金额,单位为分,只能为整数,可部分退款
*/
private Integer refundFee;
/**
* SETTLEMENT_TOTAL_FEE:应结订单金额
*/
private Integer settlementTotalFee;
/**
* SETTLEMENT_REFUND_FEE:退款金额(申请退款金额 - 非充值代金券退款金额)
*/
private Integer settlementRefundFee;
/**
* REFUND_DESC:退款原因
*/
private String refundDesc;
/**
* REFUND_STATUS:退款状态(SUCCESS—退款成功;REFUNDCLOSE—退款关闭;PROCESSING—退款处理中;CHANGE—退款异常)
*/
private String refundStatus;
/**
* REFUND_RECV_ACCOUNT:退款入账账户(1)退回银行卡:{银行名称}{卡类型}{卡尾号};2)退回支付用户零钱:支付用户零钱;3)退还商户:商户基本账户商户结算银行账户;4)退回支付用户零钱通:支付用户零钱通)
*/
private String refundRecvAccount;
/**
* REFUND_CHANNEL:退款渠道(ORIGINAL—原路退款;BALANCE—退回到余额;OTHER_BALANCE—原账户异常退到其他余额账户;OTHER_BANKCARD—原银行卡异常退到其他银行卡)
*/
private String refundChannel;
/**
* REFUND_SUCCESS_TIME:退款成功时间
*/
private String refundSuccessTime;
/**
* REFUND_ACCOUNT:退款资金来源(REFUND_SOURCE_RECHARGE_FUNDS 可用余额退款/基本账户;REFUND_SOURCE_UNSETTLED_FUNDS 未结算资金退款)
*/
private String refundAccount;
/**
* REFUND_REQUEST_SOURCE:退款发起来源(API接口;VENDOR_PLATFORM商户平台)
*/
private String refundRequestSource;
/**
* DJ_MERCHANT_ID:嘀加平台商户号
*/
private Integer djMerchantId;
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId == null ? null : appId.trim();
}
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId == null ? null : merchantId.trim();
}
public String getSubAppId() {
return subAppId;
}
public void setSubAppId(String subAppId) {
this.subAppId = subAppId == null ? null : subAppId.trim();
}
public String getSubMerchantId() {
return subMerchantId;
}
public void setSubMerchantId(String subMerchantId) {
this.subMerchantId = subMerchantId == null ? null : subMerchantId.trim();
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
}
public String getOutRefundNo() {
return outRefundNo;
}
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo == null ? null : outRefundNo.trim();
}
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId == null ? null : transactionId.trim();
}
public String getRefundId() {
return refundId;
}
public void setRefundId(String refundId) {
this.refundId = refundId == null ? null : refundId.trim();
}
public Integer getTotalFee() {
return totalFee;
}
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
public Integer getRefundFee() {
return refundFee;
}
public void setRefundFee(Integer refundFee) {
this.refundFee = refundFee;
}
public Integer getSettlementTotalFee() {
return settlementTotalFee;
}
public void setSettlementTotalFee(Integer settlementTotalFee) {
this.settlementTotalFee = settlementTotalFee;
}
public Integer getSettlementRefundFee() {
return settlementRefundFee;
}
public void setSettlementRefundFee(Integer settlementRefundFee) {
this.settlementRefundFee = settlementRefundFee;
}
public String getRefundDesc() {
return refundDesc;
}
public void setRefundDesc(String refundDesc) {
this.refundDesc = refundDesc == null ? null : refundDesc.trim();
}
public String getRefundStatus() {
return refundStatus;
}
public void setRefundStatus(String refundStatus) {
this.refundStatus = refundStatus == null ? null : refundStatus.trim();
}
public String getRefundRecvAccount() {
return refundRecvAccount;
}
public void setRefundRecvAccount(String refundRecvAccount) {
this.refundRecvAccount = refundRecvAccount == null ? null : refundRecvAccount.trim();
}
public String getRefundChannel() {
return refundChannel;
}
public void setRefundChannel(String refundChannel) {
this.refundChannel = refundChannel == null ? null : refundChannel.trim();
}
public String getRefundSuccessTime() {
return refundSuccessTime;
}
public void setRefundSuccessTime(String refundSuccessTime) {
this.refundSuccessTime = refundSuccessTime == null ? null : refundSuccessTime.trim();
}
public String getRefundAccount() {
return refundAccount;
}
public void setRefundAccount(String refundAccount) {
this.refundAccount = refundAccount == null ? null : refundAccount.trim();
}
public String getRefundRequestSource() {
return refundRequestSource;
}
public void setRefundRequestSource(String refundRequestSource) {
this.refundRequestSource = refundRequestSource == null ? null : refundRequestSource.trim();
}
public Integer getDjMerchantId() {
return djMerchantId;
}
public void setDjMerchantId(Integer djMerchantId) {
this.djMerchantId = djMerchantId;
}
@Override
public String toString() {
return "WechatRefundOrder [appId=" + appId + ", merchantId="
+ merchantId + ", subAppId=" + subAppId + ", subMerchantId="
+ subMerchantId + ", outTradeNo=" + outTradeNo
+ ", outRefundNo=" + outRefundNo + ", transactionId="
+ transactionId + ", refundId=" + refundId + ", totalFee="
+ totalFee + ", refundFee=" + refundFee
+ ", settlementTotalFee=" + settlementTotalFee
+ ", settlementRefundFee=" + settlementRefundFee
+ ", refundDesc=" + refundDesc + ", refundStatus="
+ refundStatus + ", refundRecvAccount=" + refundRecvAccount
+ ", refundChannel=" + refundChannel + ", refundSuccessTime="
+ refundSuccessTime + ", refundAccount=" + refundAccount
+ ", refundRequestSource=" + refundRequestSource
+ ", djMerchantId=" + djMerchantId + ", toString()="
+ super.toString() + "]";
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.model;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Table;
import cn.com.glsx.framework.core.beans.BaseModel;
/**
* 微信特约商户实体
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
@Table(name = "dj_wechat_special_merchant")
public class WechatSpecialMerchant extends BaseModel{
private static final long serialVersionUID = -480540916419139495L;
/**
* MERCHANT_ID:门店商户号
*/
@ApiModelProperty(name = "merchantId", notes = "门店商户号", dataType = "int", required = true, example = "1")
private Integer merchantId;
/**
* APP_ID:小程序APPID
*/
@ApiModelProperty(name = "appId", notes = "小程序APPID", dataType = "string", required = true, example = "wx08a8455485543f1b")
private String appId;
/**
* SPECIAL_MERCHANT_ID:特约商户号
*/
@ApiModelProperty(name = "specialMerchantId", notes = "特约商户号", dataType = "string", required = true, example = "1534071441")
private String specialMerchantId;
/**
* SPECIAL_MERCHANT_NAME:特约商户名
*/
@ApiModelProperty(name = "specialMerchantName", notes = "特约商户名", dataType = "string", required = true, example = "深圳广联赛讯有限公司")
private String specialMerchantName;
/**
* SPECIAL_MERCHANT_TYPE:特约商户类型(PLATFORM:平台;MERCHANT:商家)
*/
@ApiModelProperty(name = "specialMerchantId", notes = "特约商户类型(PLATFORM:平台;COMMON:普通)", dataType = "string", required = true, example = "COMMON")
private String specialMerchantType;
public Integer getMerchantId() {
return merchantId;
}
public void setMerchantId(Integer merchantId) {
this.merchantId = merchantId;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId == null ? null : appId.trim();
}
public String getSpecialMerchantId() {
return specialMerchantId;
}
public void setSpecialMerchantId(String specialMerchantId) {
this.specialMerchantId = specialMerchantId == null ? null : specialMerchantId.trim();
}
public String getSpecialMerchantName() {
return specialMerchantName;
}
public void setSpecialMerchantName(String specialMerchantName) {
this.specialMerchantName = specialMerchantName == null ? null : specialMerchantName.trim();
}
public String getSpecialMerchantType() {
return specialMerchantType;
}
public void setSpecialMerchantType(String specialMerchantType) {
this.specialMerchantType = specialMerchantType == null ? null : specialMerchantType.trim();
}
@Override
public String toString() {
return "WechatSpecialMerchant [merchantId=" + merchantId + ", appId="
+ appId + ", specialMerchantId=" + specialMerchantId
+ ", specialMerchantName=" + specialMerchantName
+ ", specialMerchantType=" + specialMerchantType
+ ", toString()=" + super.toString() + "]";
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.model;
import java.util.Date;
import javax.persistence.Table;
import cn.com.glsx.framework.core.beans.BaseModel;
/**
* 微信交易订单实体
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
@Table(name = "dj_wechat_trade_order")
public class WechatTradeOrder extends BaseModel{
private static final long serialVersionUID = -8466608482741461127L;
/**
* APP_ID:服务商应用ID(微信分配的公众账号ID)
*/
private String appId;
/**
* MERCHANT_ID:商户号(微信支付分配的商户号)
*/
private String merchantId;
/**
* SUB_APP_ID:当前调起支付的小程序APPID
*/
private String subAppId;
/**
* SUB_MERCHANT_ID:微信支付分配的子商户号
*/
private String subMerchantId;
/**
* OUT_TRADE_NO:商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*且在同一个商户号下唯一
*/
private String outTradeNo;
/**
* ORDER_CODE:商户订单号(由业务方传)
*/
private String orderCode;
/**
* TRANSACTION_ID:微信交易号
*/
private String transactionId;
/**
* OPEN_ID:用户OPENID
*/
private String openId;
/**
* SUB_OPEN_ID:小程序用户的OPENID
*/
private String subOpenId;
/**
* NONCE_STR:随机字符串,不长于32位
*/
private String nonceStr;
/**
* GOODS_DESC:商品描述
*/
private String goodsDesc;
/**
* ATTACH:附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据
*/
private String attach;
/**
* TOTAL_FEE:订单总金额,只能为整数(单位:分)
*/
private Integer totalFee;
/**
* TRADE_STATUE:交易状态(SUCCESS—支付成功;REFUND—转入退款;NOTPAY—未支付;CLOSED—已关闭;REVOKED—已撤销;USERPAYING--用户支付中;PAYERROR--支付失败)
*/
private String tradeStatus;
/**
* TRADE_SNAPSHOT:交易响应快照
*/
private String tradeSnapshot;
/**
* TIME_START:订单生成时间,格式为yyyyMMddHHmmss
*/
private String timeStart;
/**
* TIME_EXPIRE:订单失效时间,格式为yyyyMMddHHmmss
*/
private String timeExpire;
/**
* TRADE_TIME:交易时间
*/
private Date tradeTime;
/**
* DJ_MERCHANT_ID:嘀加平台商户号
*/
private Integer djMerchantId;
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getSubAppId() {
return subAppId;
}
public void setSubAppId(String subAppId) {
this.subAppId = subAppId;
}
public String getSubMerchantId() {
return subMerchantId;
}
public void setSubMerchantId(String subMerchantId) {
this.subMerchantId = subMerchantId;
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOrderCode() {
return orderCode;
}
public void setOrderCode(String orderCode) {
this.orderCode = orderCode;
}
public String getOpenId() {
return openId;
}
public void setOpenId(String openId) {
this.openId = openId;
}
public String getSubOpenId() {
return subOpenId;
}
public void setSubOpenId(String subOpenId) {
this.subOpenId = subOpenId;
}
public String getNonceStr() {
return nonceStr;
}
public void setNonceStr(String nonceStr) {
this.nonceStr = nonceStr;
}
public String getGoodsDesc() {
return goodsDesc;
}
public void setGoodsDesc(String goodsDesc) {
this.goodsDesc = goodsDesc;
}
public String getAttach() {
return attach;
}
public void setAttach(String attach) {
this.attach = attach;
}
public Integer getTotalFee() {
return totalFee;
}
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
public String getTimeStart() {
return timeStart;
}
public void setTimeStart(String timeStart) {
this.timeStart = timeStart;
}
public String getTimeExpire() {
return timeExpire;
}
public void setTimeExpire(String timeExpire) {
this.timeExpire = timeExpire;
}
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public String getTradeStatus() {
return tradeStatus;
}
public void setTradeStatus(String tradeStatus) {
this.tradeStatus = tradeStatus;
}
public String getTradeSnapshot() {
return tradeSnapshot;
}
public void setTradeSnapshot(String tradeSnapshot) {
this.tradeSnapshot = tradeSnapshot;
}
public Date getTradeTime() {
return tradeTime;
}
public void setTradeTime(Date tradeTime) {
this.tradeTime = tradeTime;
}
public Integer getDjMerchantId() {
return djMerchantId;
}
public void setDjMerchantId(Integer djMerchantId) {
this.djMerchantId = djMerchantId;
}
@Override
public String toString() {
return "WechatTradeOrder [appId=" + appId + ", merchantId="
+ merchantId + ", subAppId=" + subAppId + ", subMerchantId="
+ subMerchantId + ", outTradeNo=" + outTradeNo + ", orderCode="
+ orderCode + ", transactionId=" + transactionId + ", openId="
+ openId + ", subOpenId=" + subOpenId + ", nonceStr="
+ nonceStr + ", goodsDesc=" + goodsDesc + ", attach=" + attach
+ ", totalFee=" + totalFee + ", tradeStatus=" + tradeStatus
+ ", tradeSnapshot=" + tradeSnapshot + ", timeStart="
+ timeStart + ", timeExpire=" + timeExpire + ", tradeTime="
+ tradeTime + ", djMerchantId=" + djMerchantId
+ ", toString()=" + super.toString() + "]";
}
}
\ No newline at end of file
package cn.com.glsx.dj.payment.remote;
import java.util.List;
import cn.com.glsx.dj.payment.dto.WechatRefundOrderDTO;
import cn.com.glsx.dj.payment.dto.WechatTradeOrderDTO;
import cn.com.glsx.dj.payment.model.WechatRefundOrder;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiParam.DataTypeEnum;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @Title: WechatPaymentExportRemote.java
* @Description: 嘀加-微信支付导出服务
* @author Alvin
* @date 2020年6月12日 下午2:57:39
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
@ApiService(value = "嘀加-微信支付导出远程服务", owner = "zengqi")
public interface WechatPaymentExportRemote {
/**
* 查询交易订单
* @param pagination 查询交易订单
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-查询交易订单")
@ApiParam(name = "condition", notes = "订单查询条件", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("交易订单列表")
RpcResponse<List<WechatTradeOrder>> search(WechatTradeOrderDTO condition);
/**
* 查询退款订单
* @param pagination 退款订单查询条件
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-查询退款订单")
@ApiParam(name = "condition", notes = "退款订单查询条件", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("退款订单列表")
RpcResponse<List<WechatRefundOrder>> search(WechatRefundOrderDTO condition);
}
package cn.com.glsx.dj.payment.remote;
import cn.com.glsx.dj.payment.dto.CreateOrderRequestDTO;
import cn.com.glsx.dj.payment.dto.CreateOrderResponseDTO;
import cn.com.glsx.dj.payment.dto.PayNotifyResponseDTO;
import cn.com.glsx.dj.payment.dto.PayRefundNotifyResponseDTO;
import cn.com.glsx.dj.payment.dto.PayRefundQueryRequestDTO;
import cn.com.glsx.dj.payment.dto.PayRefundQueryResponseDTO;
import cn.com.glsx.dj.payment.dto.PayRefundRequestDTO;
import cn.com.glsx.dj.payment.dto.QueryOrderResponseDTO;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiParam.DataTypeEnum;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @Title: WechatPaymentRemote.java
* @Description: 微信支付远程服务
* @author Alvin
* @date 2019年5月7日 下午4:01:24
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@ApiService(value = "嘀加-微信支付远程服务", owner = "zengqi")
public interface WechatPaymentRemote {
/**
* 创建预支付交易订单(支持服务商模式和普通商户模式)
* @param createOrderRequest 交易订单参数
* @return
* @author Alvin
* @date 2019年5月7日 下午4:04:47
*/
@ApiMethod(value = "嘀加-创建预支付交易订单(支持服务商模式和普通商户模式)")
@ApiParam(name = "createOrderRequest", notes = "交易订单参数", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("小程序支付参数")
RpcResponse<CreateOrderResponseDTO> createOrder(CreateOrderRequestDTO createOrderRequest);
/**
* 查询交易订单(支持服务商模式和普通商户模式)
* @param outTradeNo 交易订单号
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-查询交易订单(支持服务商模式和普通商户模式)")
@ApiParam(name = "outTradeNo", notes = "交易订单号", dataType = DataTypeEnum.STRING, required = true)
@ApiResponse("交易订单信息")
RpcResponse<QueryOrderResponseDTO> queryOrder(String outTradeNo);
/**
* 关闭交易订单(支持服务商模式和普通商户模式)
* @param outTradeNo 交易订单号
* @return
* @author Alvin
* @date 2019年5月10日 下午4:04:50
*/
@ApiMethod(value = "嘀加-关闭交易订单(支持服务商模式和普通商户模式)")
@ApiParam(name = "outTradeNo", notes = "交易订单号", dataType = DataTypeEnum.STRING, required = true)
@ApiResponse("是否关闭成功")
RpcResponse<Boolean> closeOrder(String outTradeNo);
/**
* 支付结果通知(支持服务商模式和普通商户模式)
* @param notifyXml 支付结果通知报文
* @return
* @author Alvin
* @date 2019年5月7日 下午4:07:43
*/
@ApiMethod(value = "嘀加-支付结果通知(支持服务商模式和普通商户模式)")
@ApiParam(name = "notifyXml", notes = "支付结果通知报文", dataType = DataTypeEnum.STRING, required = true)
@ApiResponse("支付结果响应报文(返回给微信)")
RpcResponse<PayNotifyResponseDTO> notify(String notifyXml);
/**
* 退款申请(支持服务商模式和普通商户模式)
* @param request 退款订单参数
* @return
* @author Alvin
* @date 2019年6月26日 下午4:47:18
*/
@ApiMethod(value = "嘀加-退款申请(支持服务商模式和普通商户模式)")
@ApiParam(name = "request", notes = "退款订单参数", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("退款订单号")
RpcResponse<String> refund(PayRefundRequestDTO request);
/**
* 退款查询(支持服务商模式和普通商户模式)
* @param request 退款订单参数
* @return
* @author Alvin
* @date 2019年6月27日 下午5:46:07
*/
@ApiMethod(value = "嘀加-退款查询(支持服务商模式和普通商户模式)")
@ApiParam(name = "request", notes = "退款订单参数", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("退款订单信息")
RpcResponse<PayRefundQueryResponseDTO> refundQuery(PayRefundQueryRequestDTO request);
/**
* 退款结果通知(支持服务商模式和普通商户模式)
* @param notifyXml 退款结果通知报文
* @return
* @author Alvin
* @date 2019年6月25日 下午5:33:53
*/
@ApiMethod(value = "嘀加-退款结果通知(支持服务商模式和普通商户模式)")
@ApiParam(name = "notifyXml", notes = "退款结果通知报文", dataType = DataTypeEnum.STRING, required = true)
@ApiResponse("退款结果响应报文(返回给微信)")
RpcResponse<PayRefundNotifyResponseDTO> refundNotify(String notifyXml);
/**
* 查询交易订单
* @param outTradeNo 交易订单号
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-查询交易订单")
@ApiParam(name = "outTradeNo", notes = "交易订单号", dataType = DataTypeEnum.STRING, required = true)
@ApiResponse("交易订单信息")
RpcResponse<WechatTradeOrder> getByOutTradeNo(String outTradeNo);
}
package cn.com.glsx.dj.payment.remote;
import cn.com.glsx.dj.payment.dto.WechatRefundOrderDTO;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiParam.DataTypeEnum;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @Title: WechatRefundOrderRemote.java
* @Description:嘀加-微信退款订单远程服务
* @author Alvin
* @date 2020年6月11日 上午11:02:51
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
@ApiService(value = "嘀加-微信退款订单远程服务", owner = "zengqi")
public interface WechatRefundOrderRemote {
/**
* 分页查询退款订单
* @param pagination 退款订单查询条件
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-分页查询退款订单")
@ApiParam(name = "pagination", notes = "退款订单查询条件", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("退款订单列表")
RpcResponse<RpcPagination<WechatRefundOrderDTO>> search(RpcPagination<WechatRefundOrderDTO> pagination);
}
package cn.com.glsx.dj.payment.remote;
import cn.com.glsx.dj.payment.dto.WechatSpecialMerchantDTO;
import cn.com.glsx.dj.payment.enums.SpecialMerchantTypeEnum;
import cn.com.glsx.dj.payment.model.WechatSpecialMerchant;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiParam.DataTypeEnum;
import cn.com.glsx.framework.core.annotation.ApiParams;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @Title: WechatSpecialMerchantRemote.java
* @Description: 微信特约商户远程服务
* @author Alvin
* @date 2019年5月7日 下午4:38:02
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@ApiService(value = "微信特约商户远程服务", owner = "zengqi")
public interface WechatSpecialMerchantRemote {
/**
* 添加微信特约商户
* @param merchant 微信特约商户信息
* @return
* @author Alvin
* @date 2019年5月7日 下午4:43:09
*/
@ApiMethod(value = "添加微信特约商户")
@ApiParam(name = "merchant", notes = "微信特约商户信息", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("微信特约商户信息")
RpcResponse<WechatSpecialMerchant> add(WechatSpecialMerchant merchant);
/**
* 修改微信特约商户
* @param merchant 微信特约商户信息
* @return
* @author Alvin
* @date 2019年5月7日 下午4:43:09
*/
@ApiMethod(value = "修改微信特约商户")
@ApiParam(name = "merchant", notes = "微信特约商户信息", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("是否成功")
RpcResponse<Boolean> update(WechatSpecialMerchant merchant);
/**
* 获取微信特约商户信息
* @param appId 微信应用ID
* @param type 特约商户类型
* @return
* @author Alvin
* @date 2019年5月7日 下午4:43:48
*/
@ApiMethod(value = "获取微信特约商户信息")
@ApiParams({
@ApiParam(name = "appId", notes = "微信应用ID", dataType = DataTypeEnum.STRING, required = true),
@ApiParam(name = "type", notes = "特约商户类型(PLATFORM:平台;COMMON:普通)", dataType = DataTypeEnum.ENUM, required = true)
})
@ApiResponse("微信特约商户信息")
RpcResponse<WechatSpecialMerchant> getByAppIdAndMerchantType(String appId, SpecialMerchantTypeEnum type);
/**
* 分页查询微信特约商户信息
* @param pagination 分页查询条件
* @return
* @author Alvin
* @date 2019年5月7日 下午4:44:43
*/
@ApiMethod(value = "分页查询微信特约商户信息")
@ApiParam(name = "pagination", notes = "分页查询条件", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("微信特约商户信息列表")
RpcResponse<RpcPagination<WechatSpecialMerchantDTO>> search(RpcPagination<WechatSpecialMerchantDTO> pagination);
}
package cn.com.glsx.dj.payment.remote;
import java.util.List;
import java.util.Map;
import cn.com.glsx.dj.payment.dto.WechatTradeOrderDTO;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiParam.DataTypeEnum;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @Title: WechatTradeOrderRemote.java
* @Description:嘀加-微信交易订单远程服务
* @author Alvin
* @date 2019年11月29日 上午9:45:43
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@ApiService(value = "嘀加-微信交易订单远程服务", owner = "zengqi")
public interface WechatTradeOrderRemote {
/**
* 批量查询交易订单
* @param outTradeNoList 交易订单号列表
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-批量查询交易订单")
@ApiParam(name = "outTradeNoList", notes = "交易订单号列表", dataType = DataTypeEnum.LIST, required = true)
@ApiResponse("交易订单列表")
RpcResponse<List<WechatTradeOrder>> batchByOutTradeNos(List<String> outTradeNoList);
/**
* 批量判断交易订单来源
* @param outTradeNoList 交易订单号列表
* @return 判断结果集合(Key:交易订单号;Value:是否为公版)
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-批量判断交易订单来源")
@ApiParam(name = "outTradeNoList", notes = "交易订单号列表", dataType = DataTypeEnum.LIST, required = true)
@ApiResponse("判断结果集合(Key:交易订单号;Value:是否为公版)")
RpcResponse<Map<String, Boolean>> batchJudgeSourceByOutTradeNos(List<String> outTradeNoList);
/**
* 分页查询交易订单
* @param pagination 交易订单查询条件
* @return
* @author Alvin
* @date 2019年5月7日 下午4:06:05
*/
@ApiMethod(value = "嘀加-分页查询交易订单")
@ApiParam(name = "pagination", notes = "交易订单查询条件", dataType = DataTypeEnum.OBJECT, required = true)
@ApiResponse("交易订单列表")
RpcResponse<RpcPagination<WechatTradeOrderDTO>> search(RpcPagination<WechatTradeOrderDTO> pagination);
}
# framework-archetype-rpc-api
RPC-API项目骨架
一、项目结构说明:
└─src
├─main
├─java
├─cn.com.glsx.dj.payment.dto 数据传输模型层
├─cn.com.glsx.dj.payment.enums 枚举定义
├─cn.com.glsx.dj.payment.model 数据模型层
└─cn.com.glsx.dj.payment.remote RPC暴露服务层
└─resources 资源文件目录
└─rpc
└─dubbo.xml dubbo接口配置
└─pom.xml pom文件
二、使用说明:
1、API改动后,请及时deploy到Maven仓库
三、注意事项:
1、rpc-api-deploy-maven-plugin api上报插件需配置当前api的jar包的引用。
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
</beans>
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>framework-rpc</artifactId>
<version>1.0.1-SNAPSHOT</version>
</parent>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-payment</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>rpc-dj-payment</name>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-payment-api</artifactId>
<version>0.0.3-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package cn.com.glsx.dj.payment;
import org.oreframework.boot.main.AbsOreBootStarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
/**
* @Title: Main.java
* @Description:
* @author zengqi
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2015
*/
@SpringBootApplication
@ServletComponentScan
public class Main extends AbsOreBootStarter {
@Override
public void run(String[] args)
{
SpringApplication.run(Main.class, args);
}
public static void main(String[] args)
{
Main main = new Main();
main.run(args);
}
}
package cn.com.glsx.dj.payment.config;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
* @Description: Dubbo服务注册配置
* @author zengqi
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class DubboConfig {
@Autowired
private ReferenceBuilderFactory factory;
}
package cn.com.glsx.dj.payment.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @Title: GeneralEditionWeappProperty.java
* @Description:
* @author Alvin
* @date 2019年11月26日 下午3:25:34
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
@ConfigurationProperties("dj.payment.general.edition.weapp")
public class GeneralEditionWeappProperty {
/**
* 嘀加公版小程序应用Id
*/
private String appid;
/**
* 嘀加公版小程序默认支付商户号
*/
private String merchantId;
/**
* 嘀加公版小程序默认支付商户名
*/
private String merchantName;
/**
* 嘀加公版小程序默认支付商户秘钥
*/
private String apiKey;
/**
* 证书密码,默认商户号
*/
private String keyPass;
/**
* 证书路径
*/
private String keyPath;
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid;
}
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getKeyPass() {
return keyPass;
}
public void setKeyPass(String keyPass) {
this.keyPass = keyPass;
}
public String getKeyPath() {
return keyPath;
}
public void setKeyPath(String keyPath) {
this.keyPath = keyPath;
}
}
package cn.com.glsx.dj.payment.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @Title: PayCenterProperty.java
* @Description: 支付中心配置
* @author Alvin
* @date 2019年11月2日 下午2:56:59
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
@ConfigurationProperties("dj.pay.center")
public class PayCenterProperty {
/**
* 应用key
*/
private String appKey;
/**
* 应用秘钥
*/
private String appSecret;
/**
* 支付中心域名
*/
private String domain;
/**
* 建立虚拟帐户接口地址
*/
private String createAccountUrl;
/**
* 查询虚拟账号接口地址
*/
private String getAccountUrl;
/**
* 虚拟账号变更接口地址
*/
private String updateAccountUrl;
/**
* 虚拟账号状态变更接口地址
*/
private String updateAccountStatusUrl;
/**
* 虚拟账户添加修改结算账户接口地址
*/
private String addAndUpdateAccountBalanceUrl;
/**
* 查询虚拟账号下的结算账号接口地址
*/
private String getAccountBalanceUrl;
/**
* 用户金额查询接口地址
*/
private String getUserAmountTotalUrl;
/**
* 查询虚拟账户余额接口地址
*/
private String getAccountAmountUrl;
/**
* 查询支付订单列表接口地址
*/
private String listOrderInfoUrl;
/**
* 查询支付订单明细接口地址
*/
private String queryOrderInfoUrl;
/**
* 公众号支付(小程序)接口地址
*/
private String subbmitOrderInfoOfaUrl;
public String getAppKey() {
return appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
public String getAppSecret() {
return appSecret;
}
public void setAppSecret(String appSecret) {
this.appSecret = appSecret;
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public String getCreateAccountUrl() {
return createAccountUrl;
}
public void setCreateAccountUrl(String createAccountUrl) {
this.createAccountUrl = createAccountUrl;
}
public String getGetAccountUrl() {
return getAccountUrl;
}
public void setGetAccountUrl(String getAccountUrl) {
this.getAccountUrl = getAccountUrl;
}
public String getUpdateAccountUrl() {
return updateAccountUrl;
}
public void setUpdateAccountUrl(String updateAccountUrl) {
this.updateAccountUrl = updateAccountUrl;
}
public String getUpdateAccountStatusUrl() {
return updateAccountStatusUrl;
}
public void setUpdateAccountStatusUrl(String updateAccountStatusUrl) {
this.updateAccountStatusUrl = updateAccountStatusUrl;
}
public String getAddAndUpdateAccountBalanceUrl() {
return addAndUpdateAccountBalanceUrl;
}
public void setAddAndUpdateAccountBalanceUrl(
String addAndUpdateAccountBalanceUrl) {
this.addAndUpdateAccountBalanceUrl = addAndUpdateAccountBalanceUrl;
}
public String getGetAccountBalanceUrl() {
return getAccountBalanceUrl;
}
public void setGetAccountBalanceUrl(String getAccountBalanceUrl) {
this.getAccountBalanceUrl = getAccountBalanceUrl;
}
public String getGetUserAmountTotalUrl() {
return getUserAmountTotalUrl;
}
public void setGetUserAmountTotalUrl(String getUserAmountTotalUrl) {
this.getUserAmountTotalUrl = getUserAmountTotalUrl;
}
public String getGetAccountAmountUrl() {
return getAccountAmountUrl;
}
public void setGetAccountAmountUrl(String getAccountAmountUrl) {
this.getAccountAmountUrl = getAccountAmountUrl;
}
public String getListOrderInfoUrl() {
return listOrderInfoUrl;
}
public void setListOrderInfoUrl(String listOrderInfoUrl) {
this.listOrderInfoUrl = listOrderInfoUrl;
}
public String getQueryOrderInfoUrl() {
return queryOrderInfoUrl;
}
public void setQueryOrderInfoUrl(String queryOrderInfoUrl) {
this.queryOrderInfoUrl = queryOrderInfoUrl;
}
public String getSubbmitOrderInfoOfaUrl() {
return subbmitOrderInfoOfaUrl;
}
public void setSubbmitOrderInfoOfaUrl(String subbmitOrderInfoOfaUrl) {
this.subbmitOrderInfoOfaUrl = subbmitOrderInfoOfaUrl;
}
}
package cn.com.glsx.dj.payment.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @Title: PaymentProperty.java
* @Description:
* @author zengqi
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@Configuration
@ConfigurationProperties("dj.payment.weapp")
public class PaymentProperty {
/**
* 统一下单链接
*/
private String unifiedOrderUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder";
/**
* 查询订单链接
*/
private String orderQueryUrl = "https://api.mch.weixin.qq.com/pay/orderquery";
/**
* 关闭订单链接
*/
private String closeOrderUrl = "https://api.mch.weixin.qq.com/pay/closeorder";
/**
* 申请退款
*/
private String payRefundUrl = "https://api.mch.weixin.qq.com/secapi/pay/refund";
/**
* 查询退款
*/
private String payRefundQueryUrl = "https://api.mch.weixin.qq.com/pay/refundquery";
/**
* 微信分配的公众账号ID
*/
private String appId;
/**
* 微信支付分配的商户号
*/
private String merchantId;
/**
* 微信支付API秘钥
*/
private String apiKey;
/**
* 签名类型,目前支持HMAC-SHA256和MD5,默认为MD5
*/
private String signType = "MD5";
/**
* 交易类型,小程序取值如下:JSAPI
*/
private String tradeType = "JSAPI";
/**
* 证书密码,默认商户号
*/
private String keyPass;
/**
* 证书路径
*/
private String keyPath;
public String getUnifiedOrderUrl() {
return unifiedOrderUrl;
}
public void setUnifiedOrderUrl(String unifiedOrderUrl) {
this.unifiedOrderUrl = unifiedOrderUrl;
}
public String getOrderQueryUrl() {
return orderQueryUrl;
}
public void setOrderQueryUrl(String orderQueryUrl) {
this.orderQueryUrl = orderQueryUrl;
}
public String getCloseOrderUrl() {
return closeOrderUrl;
}
public void setCloseOrderUrl(String closeOrderUrl) {
this.closeOrderUrl = closeOrderUrl;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getSignType() {
return signType;
}
public void setSignType(String signType) {
this.signType = signType;
}
public String getTradeType() {
return tradeType;
}
public void setTradeType(String tradeType) {
this.tradeType = tradeType;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getPayRefundUrl() {
return payRefundUrl;
}
public void setPayRefundUrl(String payRefundUrl) {
this.payRefundUrl = payRefundUrl;
}
public String getPayRefundQueryUrl() {
return payRefundQueryUrl;
}
public void setPayRefundQueryUrl(String payRefundQueryUrl) {
this.payRefundQueryUrl = payRefundQueryUrl;
}
public String getKeyPass() {
return keyPass;
}
public void setKeyPass(String keyPass) {
this.keyPass = keyPass;
}
public String getKeyPath() {
return keyPath;
}
public void setKeyPath(String keyPath) {
this.keyPath = keyPath;
}
}
package cn.com.glsx.dj.payment.converter;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* @Title: AbstractConverter.java
* @Description: 转换器抽象
* @author Alvin
* @date 2019年5月30日 上午11:40:44
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@SuppressWarnings("unchecked")
public abstract class AbstractXmlConverter<T> implements XmlConverter<T> {
/**
* 解码
* @param response
* @param xmlData
* @return
* @author Alvin
* @date 2019年5月30日 下午3:31:57
*/
public abstract T unmarshal(T response, Map<String, String> xmlData);
@Override
public T convert(String xml) {
return unmarshal(xml);
}
/**
* xml转map
* @param xml
* @return
* @throws Exception
* @author Alvin
* @date 2019年5月30日 下午3:32:29
*/
private Map<String, String> xmlConverterToMap(String xml) throws Exception {
// 将解析结果存储在HashMap中
Map<String, String> map = new HashMap<String, String>(32);
// 读取输入流
SAXReader reader = new SAXReader();
InputStream inputStream = new ByteArrayInputStream(xml.getBytes());
Document document = reader.read(inputStream);
// 得到xml根元素
Element root = document.getRootElement();
// 得到根元素的所有子节点
List<Element> elements = root.elements();
// 遍历所有子节点
for (Element e : elements) {
map.put(e.getName(), e.getText());
}
// 释放资源
inputStream.close();
inputStream = null;
return map;
}
/**
* xml解码成java类
* @param xml
* @return
* @author Alvin
* @date 2019年5月30日 下午3:32:48
*/
private T unmarshal(String xml){
try{
Map<String, String> xmlData = xmlConverterToMap(xml);
Class<T> clazz = (Class<T>) getTClass();
T response = clazz.newInstance();
for(; clazz != Object.class; clazz = (Class<T>) clazz.getSuperclass()){
Field[] fields = clazz.getDeclaredFields();
for(Field field:fields){
field.setAccessible(true);
XStreamAlias alias = field.getAnnotation(XStreamAlias.class);
if(alias == null){
continue;
}
String value = xmlData.get(alias.value());
Method method = clazz.getMethod(setterName(field.getName()), field.getType());
if(method == null || value == null){
continue;
}
method.invoke(response, valueOf(field.getType(), xmlData.get(alias.value())));
}
}
response = unmarshal(response, xmlData);
return response;
}catch(Exception e){
e.printStackTrace();
}
return null;
}
/**
* 获取set方法名
* @param fieldName
* @return
* @author Alvin.zengqi
* @date 2018年2月6日 下午6:43:32
*/
private String setterName(String fieldName){
String firstChar = fieldName.substring(0, 1);
fieldName = fieldName.replaceFirst(firstChar, firstChar.toUpperCase());
return "set".concat(fieldName);
}
private Object valueOf(Class<?> clazz, String object){
if(clazz.isPrimitive()){
if(double.class == clazz){
return Double.valueOf(object).doubleValue();
}
if(float.class == clazz){
return Float.valueOf(object).floatValue();
}
if(long.class == clazz){
return Long.valueOf(object).longValue();
}
if(int.class == clazz){
return Integer.valueOf(object).intValue();
}
}
if(Double.class.isAssignableFrom(clazz)){
return Double.valueOf(object);
}
if(Float.class.isAssignableFrom(clazz)){
return Float.valueOf(object);
}
if(Long.class.isAssignableFrom(clazz)){
return Long.valueOf(object);
}
if(Integer.class.isAssignableFrom(clazz)){
return Integer.valueOf(object);
}
return object;
}
private Class<T> getTClass()
{
Class<T> tClass = (Class<T>)((ParameterizedType)getClass().getGenericSuperclass()).getActualTypeArguments()[0];
return tClass;
}
}
package cn.com.glsx.dj.payment.converter;
import cn.com.glsx.dj.payment.message.request.CloseOrderRequest;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
/**
* @Title: CloseOrderConverter.java
* @Description:
* @author Alvin
* @date 2019年5月4日 下午2:54:04
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class CloseOrderConverter {
public static CloseOrderConverter INSTANCE = new CloseOrderConverter();
public CloseOrderRequest converterToTarget(WechatTradeOrder source){
if ( source == null ) {
return null;
}
CloseOrderRequest closeOrderRequest = new CloseOrderRequest();
closeOrderRequest.setAppId( source.getAppId() );
closeOrderRequest.setMerchantId( source.getMerchantId() );
closeOrderRequest.setSubAppId( source.getSubAppId() );
closeOrderRequest.setSubMerchantId( source.getSubMerchantId() );
closeOrderRequest.setNonceStr( source.getNonceStr() );
closeOrderRequest.setOutTradeNo( source.getOutTradeNo() );
return closeOrderRequest;
}
}
package cn.com.glsx.dj.payment.converter;
import cn.com.glsx.dj.payment.dto.QueryOrderResponseDTO;
import cn.com.glsx.dj.payment.message.request.OrderQueryRequest;
import cn.com.glsx.dj.payment.message.response.OrderQueryResponse;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
/**
* @Title: OrderQueryConverter.java
* @Description:
* @author Alvin
* @date 2019年5月4日 下午2:54:04
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class OrderQueryConverter {
public static OrderQueryConverter INSTANCE = new OrderQueryConverter();
public OrderQueryRequest converterToTarget(WechatTradeOrder source){
if ( source == null ) {
return null;
}
OrderQueryRequest orderQueryRequest = new OrderQueryRequest();
orderQueryRequest.setAppId( source.getAppId() );
orderQueryRequest.setMerchantId( source.getMerchantId() );
orderQueryRequest.setSubAppId( source.getSubAppId() );
orderQueryRequest.setSubMerchantId( source.getSubMerchantId() );
orderQueryRequest.setNonceStr( source.getNonceStr() );
orderQueryRequest.setOutTradeNo( source.getOutTradeNo() );
orderQueryRequest.setTransactionId( source.getTransactionId() );
return orderQueryRequest;
}
public QueryOrderResponseDTO converterToTarget(OrderQueryResponse source){
if ( source == null ) {
return null;
}
QueryOrderResponseDTO queryOrderResponseDTO = new QueryOrderResponseDTO();
queryOrderResponseDTO.setSubOpenId( source.getSubOpenId() );
queryOrderResponseDTO.setTradeState( source.getTradeState() );
queryOrderResponseDTO.setTotalFee( source.getTotalFee() );
queryOrderResponseDTO.setOutTradeNo( source.getOutTradeNo() );
queryOrderResponseDTO.setAttach( source.getAttach() );
queryOrderResponseDTO.setTimeEnd( source.getTimeEnd() );
return queryOrderResponseDTO;
}
}
package cn.com.glsx.dj.payment.converter;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;
import cn.com.glsx.dj.payment.dto.TradeSubCouponDTO;
import cn.com.glsx.dj.payment.message.response.OrderQueryResponse;
/**
* @Title: OrderQueryResponseConverter.java
* @Description:
* @author Alvin
* @date 2020年6月17日 上午11:35:00
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
@Component
public class OrderQueryResponseConverter extends AbstractXmlConverter<OrderQueryResponse> {
@Override
public OrderQueryResponse unmarshal(OrderQueryResponse response, java.util.Map<String,String> xmlData) {
Integer couponCount = response.getCouponCount();
if(couponCount == null){
return response;
}
List<TradeSubCouponDTO> couponList = new ArrayList<TradeSubCouponDTO>();
TradeSubCouponDTO coupon = null;
for(int i = 0; i< couponCount; i++){
coupon = new TradeSubCouponDTO();
coupon.setCouponType(xmlData.get("coupon_type_".concat(String.valueOf(i))));
coupon.setCouponId(xmlData.get("coupon_id_".concat(String.valueOf(i))));
String couponFee = xmlData.get("coupon_fee_".concat(String.valueOf(i)));
if(StringUtils.isNotEmpty(couponFee)){
coupon.setCouponFee(Integer.valueOf(couponFee));
}
couponList.add(coupon);
}
return response;
}
}
package cn.com.glsx.dj.payment.converter;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;
import cn.com.glsx.dj.payment.dto.TradeSubCouponDTO;
import cn.com.glsx.dj.payment.message.request.PayNotifyRequest;
/**
* @Title: PayNotifyRequestConverter.java
* @Description:
* @author Alvin
* @date 2020年6月17日 上午11:35:00
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
@Component
public class PayNotifyRequestConverter extends AbstractXmlConverter<PayNotifyRequest> {
@Override
public PayNotifyRequest unmarshal(PayNotifyRequest request, java.util.Map<String,String> xmlData) {
Integer couponCount = request.getCouponCount();
if(couponCount == null){
return request;
}
List<TradeSubCouponDTO> couponList = new ArrayList<TradeSubCouponDTO>();
TradeSubCouponDTO coupon = null;
for(int i = 0; i< couponCount; i++){
coupon = new TradeSubCouponDTO();
coupon.setCouponType(xmlData.get("coupon_type_".concat(String.valueOf(i))));
coupon.setCouponId(xmlData.get("coupon_id_".concat(String.valueOf(i))));
String couponFee = xmlData.get("coupon_fee_".concat(String.valueOf(i)));
if(StringUtils.isNotEmpty(couponFee)){
coupon.setCouponFee(Integer.valueOf(couponFee));
}
couponList.add(coupon);
}
return request;
}
}
package cn.com.glsx.dj.payment.converter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Component;
import cn.com.glsx.dj.payment.dto.RefundSubOrderDTO;
import cn.com.glsx.dj.payment.message.response.PayRefundQueryResponse;
/**
* @Title: PayRefundQueryConverter.java
* @Description: 退款查询响应转换器
* @author Alvin
* @date 2019年5月29日 下午4:04:11
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Component
public class PayRefundQueryResponseConverter extends AbstractXmlConverter<PayRefundQueryResponse> {
@Override
public PayRefundQueryResponse unmarshal(PayRefundQueryResponse response, Map<String, String> xmlData) {
Integer refundCount = response.getRefundCount();
if(refundCount == null){
return response;
}
List<RefundSubOrderDTO> refundSubOrders = new ArrayList<>(10);
RefundSubOrderDTO refundSubOrder = null;
for(int index = 0; index < refundCount; index ++){
refundSubOrder = new RefundSubOrderDTO();
refundSubOrder.setOutRefundNo(xmlData.get("out_refund_no_".concat(String.valueOf(index))));
refundSubOrder.setRefundId(xmlData.get("refund_id_".concat(String.valueOf(index))));
refundSubOrder.setRefundChannel(xmlData.get("refund_channel_".concat(String.valueOf(index))));
String refundFee = xmlData.get("refund_fee_".concat(String.valueOf(index)));
if(refundFee != null){
refundSubOrder.setRefundFee(Integer.valueOf(refundFee));
}
String settlementRefundFee = xmlData.get("settlement_refund_fee_".concat(String.valueOf(index)));
if(settlementRefundFee != null){
refundSubOrder.setSettlementRefundFee(Integer.valueOf(settlementRefundFee));
}
refundSubOrder.setRefundStatus(xmlData.get("refund_status_".concat(String.valueOf(index))));
refundSubOrder.setRefundAccount(xmlData.get("refund_account_".concat(String.valueOf(index))));
refundSubOrder.setRefundRecvAccount(xmlData.get("refund_recv_accout_".concat(String.valueOf(index))));
refundSubOrder.setRefundSuccessTime(xmlData.get("refund_success_time_".concat(String.valueOf(index))));
refundSubOrders.add(refundSubOrder);
}
response.setRefundSubOrders(refundSubOrders);
return response;
}
}
package cn.com.glsx.dj.payment.converter;
import java.util.Map;
import org.springframework.stereotype.Component;
import cn.com.glsx.dj.payment.message.response.PayRefundResponse;
/**
* @Title: PayRefundResponseConverter.java
* @Description: 退款申请响应转换器
* @author Alvin
* @date 2019年5月30日 下午2:47:52
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Component
public class PayRefundResponseConverter extends AbstractXmlConverter<PayRefundResponse> {
@Override
public PayRefundResponse unmarshal(PayRefundResponse response,
Map<String, String> xmlData) {
return response;
}
}
package cn.com.glsx.dj.payment.converter;
import cn.com.glsx.dj.payment.dto.CreateOrderRequestDTO;
import cn.com.glsx.dj.payment.message.request.UnifiedOrderRequest;
/**
* @Title: UnifiedOrderConverter.java
* @Description:
* @author Alvin
* @date 2019年5月4日 上午11:11:02
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class UnifiedOrderConverter {
public static UnifiedOrderConverter INSTANCE = new UnifiedOrderConverter();
public UnifiedOrderRequest converterToTarget(CreateOrderRequestDTO source){
if ( source == null ) {
return null;
}
UnifiedOrderRequest unifiedOrderRequest = new UnifiedOrderRequest();
unifiedOrderRequest.setBody( source.getGoodsDesc() );
// unifiedOrderRequest.setSubAppId( source.getSubAppId() );
// unifiedOrderRequest.setSubMerchantId( source.getSubMerchantId() );
unifiedOrderRequest.setAttach( source.getAttach() );
if ( source.getTotalFee() != null ) {
unifiedOrderRequest.setTotalFee( source.getTotalFee() );
}
unifiedOrderRequest.setTimeStart( source.getTimeStart() );
unifiedOrderRequest.setTimeExpire( source.getTimeExpire() );
unifiedOrderRequest.setNotifyUrl( source.getNotifyUrl() );
unifiedOrderRequest.setSubOpenId( source.getSubOpenId() );
unifiedOrderRequest.setSpbillCreateIp( source.getSpbillCreateIp() );
return unifiedOrderRequest;
}
}
package cn.com.glsx.dj.payment.converter;
import cn.com.glsx.dj.payment.message.request.UnifiedOrderRequest;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
/**
* @Title: WechatTradeOrderConverter.java
* @Description:
* @author Alvin
* @date 2019年5月4日 上午11:11:02
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public class WechatTradeOrderConverter {
public static WechatTradeOrderConverter INSTANCE = new WechatTradeOrderConverter();
public WechatTradeOrder converterToTarget(UnifiedOrderRequest source){
if ( source == null ) {
return null;
}
WechatTradeOrder wechatTradeOrder = new WechatTradeOrder();
wechatTradeOrder.setGoodsDesc( source.getBody() );
wechatTradeOrder.setAppId( source.getAppId() );
wechatTradeOrder.setMerchantId( source.getMerchantId() );
wechatTradeOrder.setSubAppId( source.getSubAppId() );
wechatTradeOrder.setSubMerchantId( source.getSubMerchantId() );
wechatTradeOrder.setOutTradeNo( source.getOutTradeNo() );
wechatTradeOrder.setOpenId( source.getOpenId() );
wechatTradeOrder.setSubOpenId( source.getSubOpenId() );
wechatTradeOrder.setNonceStr( source.getNonceStr() );
wechatTradeOrder.setAttach( source.getAttach() );
wechatTradeOrder.setTotalFee( source.getTotalFee() );
wechatTradeOrder.setTimeStart( source.getTimeStart() );
wechatTradeOrder.setTimeExpire( source.getTimeExpire() );
return wechatTradeOrder;
}
}
package cn.com.glsx.dj.payment.converter;
/**
* @Title: XmlConverter.java
* @Description: xml转换器
* @author Alvin
* @date 2019年5月30日 下午1:57:44
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
public interface XmlConverter<T> {
/**
* xml字符串转对象
* @param xml
* @return
* @author Alvin
* @date 2019年5月30日 下午2:32:37
*/
public T convert(String xml);
}
package cn.com.glsx.dj.payment.mapper;
import cn.com.glsx.dj.payment.model.WechatAppPaymentConfig;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface WechatAppPaymentConfigMapper extends OreMapper<WechatAppPaymentConfig> {
}
\ No newline at end of file
package cn.com.glsx.dj.payment.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
import cn.com.glsx.dj.payment.model.WechatPaymentConfig;
@Mapper
public interface WechatPaymentConfigMapper extends OreMapper<WechatPaymentConfig>{
}
\ No newline at end of file
package cn.com.glsx.dj.payment.mapper;
import cn.com.glsx.dj.payment.model.WechatPaymentPrivateChannel;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface WechatPaymentPrivateChannelMapper extends OreMapper<WechatPaymentPrivateChannel> {
}
\ No newline at end of file
package cn.com.glsx.dj.payment.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
import cn.com.glsx.dj.payment.model.WechatRefundOrder;
/**
* 微信退款订单Mapper
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
@Mapper
public interface WechatRefundOrderMapper extends OreMapper<WechatRefundOrder>{
}
\ No newline at end of file
package cn.com.glsx.dj.payment.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
import cn.com.glsx.dj.payment.dto.WechatSpecialMerchantDTO;
import cn.com.glsx.dj.payment.model.WechatSpecialMerchant;
import com.github.pagehelper.Page;
/**
* 微信特约商户Mapper
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
@Mapper
public interface WechatSpecialMerchantMapper extends OreMapper<WechatSpecialMerchant>{
/**
* 查询微信特约商户信息
* @param condition
* @return
* @author Alvin
* @date 2019年5月21日 下午5:47:17
*/
Page<WechatSpecialMerchantDTO> search(WechatSpecialMerchantDTO condition);
}
\ No newline at end of file
package cn.com.glsx.dj.payment.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
import cn.com.glsx.dj.payment.model.WechatTradeOrder;
/**
* 微信交易订单Mapper
* <P>Description: </P>
*
* @author Alvin
* @version 1.0
*/
@Mapper
public interface WechatTradeOrderMapper extends OreMapper<WechatTradeOrder>{
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!