Merge remote-tracking branch 'origin/master'

pull/1/head
sin 2019-03-12 02:04:23 +08:00
commit 8c71163907
9 changed files with 422 additions and 0 deletions

View File

@ -43,6 +43,7 @@
r.create_time, r.pid, r.handler r.create_time, r.pid, r.handler
FROM resource r, role_resource rr FROM resource r, role_resource rr
WHERE r.deleted = 0 WHERE r.deleted = 0
AND rr.deleted = 0
<if test="type != null"> <if test="type != null">
AND r.type = #{type} AND r.type = #{type}
</if> </if>

View File

@ -0,0 +1,43 @@
package cn.iocoder.mall.pay.api.constant;
/**
*
*/
public enum PayChannel {
WEIXIN_APP(100, "wx", "微信 App 支付"),
WEIXIN_PUB(100, "wx", "微信 JS API 支付"),
ALIPAY(200, "alipay", "微信支付");
/**
*
*/
private Integer id;
/**
*
*/
private String code;
/**
*
*/
private String name;
PayChannel(Integer id, String code, String name) {
this.id = id;
this.code = code;
this.name = name;
}
public Integer getId() {
return id;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
}

View File

@ -0,0 +1,15 @@
package cn.iocoder.mall.pay.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
/**
* TODO 线DO
*/
public class PayAppDO extends BaseDO {
/**
*
*/
private String id;
}

View File

@ -0,0 +1,24 @@
package cn.iocoder.mall.pay.dataobject;
/**
* DO
*
*
*
* TODO
*/
public class PayLogDO {
/**
*
*/
private Integer id;
/**
*
*/
private String appId;
/**
* 线
*/
private Integer orderId;
}

View File

@ -0,0 +1,7 @@
package cn.iocoder.mall.pay.dataobject;
/**
*
*/
public class PayNotifyAppLogDO {
}

View File

@ -0,0 +1,4 @@
package cn.iocoder.mall.pay.dataobject;
public class PayRefundDO {
}

View File

@ -0,0 +1,7 @@
package cn.iocoder.mall.pay.dataobject;
/**
* TODO
*/
public class PayRepeatTransactionDO {
}

View File

@ -0,0 +1,215 @@
package cn.iocoder.mall.pay.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.util.Date;
/**
* DO
*/
public class PayTransactionDO extends BaseDO {
/**
*
*/
private Integer id;
/**
*
*
* 线 appId
*
* 1. appId = 1024
* 2. appId = 2048
*/
private String appId;
/**
* IP
*/
private String createIp;
/**
* 线
*
* 1. 使 String 线使 String
* 2. appId orderId
*/
private String orderId;
/**
*
*
* 0
* 1
* 2 TODO
* -1 TODO
*/
private Integer orderStatus;
/**
*
*/
private String orderSubject;
/**
*
*/
private String orderDescription;
/**
*
*/
private String orderMemo;
/**
*
*
* TODO
*/
private Integer price;
/**
*
*/
private Integer expireTime;
// TODO return url
// TODO notify url
/**
*
*/
private Integer payChannel;
/**
*
*/
private Date paymentTime;
/**
*
*
*
*/
private Date notifyTime;
/**
*
*/
private String tradeNo;
public Integer getId() {
return id;
}
public PayTransactionDO setId(Integer id) {
this.id = id;
return this;
}
public String getAppId() {
return appId;
}
public PayTransactionDO setAppId(String appId) {
this.appId = appId;
return this;
}
public String getCreateIp() {
return createIp;
}
public PayTransactionDO setCreateIp(String createIp) {
this.createIp = createIp;
return this;
}
public String getOrderId() {
return orderId;
}
public PayTransactionDO setOrderId(String orderId) {
this.orderId = orderId;
return this;
}
public Integer getOrderStatus() {
return orderStatus;
}
public PayTransactionDO setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
return this;
}
public Integer getPrice() {
return price;
}
public PayTransactionDO setPrice(Integer price) {
this.price = price;
return this;
}
public Integer getPayChannel() {
return payChannel;
}
public PayTransactionDO setPayChannel(Integer payChannel) {
this.payChannel = payChannel;
return this;
}
public Integer getExpireTime() {
return expireTime;
}
public PayTransactionDO setExpireTime(Integer expireTime) {
this.expireTime = expireTime;
return this;
}
public Date getPaymentTime() {
return paymentTime;
}
public PayTransactionDO setPaymentTime(Date paymentTime) {
this.paymentTime = paymentTime;
return this;
}
public Date getNotifyTime() {
return notifyTime;
}
public PayTransactionDO setNotifyTime(Date notifyTime) {
this.notifyTime = notifyTime;
return this;
}
public String getTradeNo() {
return tradeNo;
}
public PayTransactionDO setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
return this;
}
public String getOrderSubject() {
return orderSubject;
}
public PayTransactionDO setOrderSubject(String orderSubject) {
this.orderSubject = orderSubject;
return this;
}
public String getOrderDescription() {
return orderDescription;
}
public PayTransactionDO setOrderDescription(String orderDescription) {
this.orderDescription = orderDescription;
return this;
}
public String getOrderMemo() {
return orderMemo;
}
public PayTransactionDO setOrderMemo(String orderMemo) {
this.orderMemo = orderMemo;
return this;
}
}

View File

@ -0,0 +1,106 @@
package cn.iocoder.mall.pay.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
/**
*
*/
public class PayTransactionExtensionDO extends BaseDO {
/**
*
*/
private Integer id;
/**
* {@link PayTransactionDO#getId()}
*/
private Integer transactionId;
/**
*
*/
private Integer payChannel;
/**
*
*/
private String transactionCode;
/**
*
*
* TODO
*/
private Integer callNum;
/**
*
*
*
*/
private String extensionData;
/**
* IP
*/
private String createIp;
public Integer getId() {
return id;
}
public PayTransactionExtensionDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getTransactionId() {
return transactionId;
}
public PayTransactionExtensionDO setTransactionId(Integer transactionId) {
this.transactionId = transactionId;
return this;
}
public Integer getPayChannel() {
return payChannel;
}
public PayTransactionExtensionDO setPayChannel(Integer payChannel) {
this.payChannel = payChannel;
return this;
}
public String getTransactionCode() {
return transactionCode;
}
public PayTransactionExtensionDO setTransactionCode(String transactionCode) {
this.transactionCode = transactionCode;
return this;
}
public Integer getCallNum() {
return callNum;
}
public PayTransactionExtensionDO setCallNum(Integer callNum) {
this.callNum = callNum;
return this;
}
public String getExtensionData() {
return extensionData;
}
public PayTransactionExtensionDO setExtensionData(String extensionData) {
this.extensionData = extensionData;
return this;
}
public String getCreateIp() {
return createIp;
}
public PayTransactionExtensionDO setCreateIp(String createIp) {
this.createIp = createIp;
return this;
}
}