重命名 PaymentPayTypeEnum
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package com.czg.order.enums;
|
||||
package com.czg.constants;
|
||||
|
||||
/**
|
||||
* 支付类型枚举
|
||||
@@ -6,7 +6,7 @@ package com.czg.order.enums;
|
||||
*
|
||||
* @author ww
|
||||
*/
|
||||
public interface PaymentPayTypeEnum {
|
||||
public interface PayTypeConstants {
|
||||
class SourceType {
|
||||
/**
|
||||
* 订单支付
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.czg.order.entity;
|
||||
|
||||
import com.czg.order.enums.PaymentPayTypeEnum;
|
||||
import com.czg.constants.PayTypeConstants;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
@@ -35,15 +35,6 @@ public class OrderPayment implements Serializable {
|
||||
@Id(keyType = KeyType.Auto)
|
||||
private Long id;
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺Id
|
||||
*/
|
||||
@@ -60,13 +51,13 @@ public class OrderPayment implements Serializable {
|
||||
|
||||
/**
|
||||
* 订单来源类型
|
||||
* {@link com.czg.order.enums.PaymentPayTypeEnum.SourceType}
|
||||
* {@link PayTypeConstants.SourceType}
|
||||
*
|
||||
*/
|
||||
private String sourceType;
|
||||
/**
|
||||
* 支付类型
|
||||
* {@link com.czg.order.enums.PaymentPayTypeEnum.PayType}
|
||||
* {@link PayTypeConstants.PayType}
|
||||
*/
|
||||
private String payType;
|
||||
|
||||
@@ -100,7 +91,7 @@ public class OrderPayment implements Serializable {
|
||||
|
||||
/**
|
||||
* 支付状态
|
||||
* {@link com.czg.order.enums.PaymentPayTypeEnum.PayStatus}
|
||||
* {@link PayTypeConstants.PayStatus}
|
||||
*/
|
||||
private String payStatus;
|
||||
|
||||
@@ -122,7 +113,7 @@ public class OrderPayment implements Serializable {
|
||||
this.orderNo = orderNo;
|
||||
this.authCode = authCode;
|
||||
this.amount = amount;
|
||||
this.payStatus = PaymentPayTypeEnum.PayStatus.INIT;
|
||||
this.payStatus = PayTypeConstants.PayStatus.INIT;
|
||||
}
|
||||
|
||||
public OrderPayment(@NonNull Long shopId,@NonNull Long sourceId, @NotBlank String sourceType,@NotBlank String payType, @NotBlank String orderNo,
|
||||
@@ -135,6 +126,6 @@ public class OrderPayment implements Serializable {
|
||||
this.authCode = authCode;
|
||||
this.amount = amount;
|
||||
this.relatedId = relatedId;
|
||||
this.payStatus = PaymentPayTypeEnum.PayStatus.INIT;
|
||||
this.payStatus = PayTypeConstants.PayStatus.INIT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user