content: package com.zzyl.entity;
  
  
  import com.zzyl.base.BaseEntity;
  import io.swagger.annotations.ApiModelProperty;
  import lombok.AllArgsConstructor;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  import lombok.NoArgsConstructor;
  
  import java.math.BigDecimal;
  
  /**
   * 交易订单表
   */
  @Data
  @NoArgsConstructor
  @AllArgsConstructor
  @EqualsAndHashCode(callSuper = true)
  public class Trading extends BaseEntity {
  
      private static final long serialVersionUID = -3427581867070559590L;
  
      @ApiModelProperty(value = "openId标识")
      private String openId;
  
      @ApiModelProperty(value = "业务系统订单号")
      private Long productOrderNo;
  
      @ApiModelProperty(value = "交易系统订单号【对于三方来说：商户订单】")
      private Long tradingOrderNo;
  
      @ApiModelProperty(value = "支付渠道【支付宝、微信、现金、免单挂账】")
      private String tradingChannel;
  
      @ApiModelProperty(value = "交易类型【1账单，2订单】")
      private String tradingType;
  
      @ApiModelProperty(value = "交易单状态【DFK待付款,FKZ付款中,QXDD取消订单,YJS已结算,MD免单,GZ挂账】")
      private Integer tradingState;
  
      @ApiModelProperty(value = "收款人姓名")
      private String payeeName;
  
      @ApiModelProperty(value = "收款人账户ID")
      private Long payeeId;
  
      @ApiModelProperty(value = "付款人姓名")
      private String payerName;
  
      @ApiModelProperty(value = "付款人Id")
      private Long payerId;
  
      @ApiModelProperty(value = "交易金额")
      private BigDecimal tradingAmount;
  
      @ApiModelProperty(value = "退款金额【付款后】")
      private BigDecimal refund;
  
      @ApiModelProperty(value = "是否有退款：YES，NO")
      private String isRefund;
  
      @ApiModelProperty(value = "第三方交易返回编码【最终确认交易结果】")
      private String resultCode;
  
      @ApiModelProperty(value = "第三方交易返回提示消息【最终确认交易信息】")
      private String resultMsg;
  
      @ApiModelProperty(value = "第三方交易返回信息json【分析交易最终信息】")
      private String resultJson;
  
      @ApiModelProperty(value = "统一下单返回编码")
      private String placeOrderCode;
  
      @ApiModelProperty(value = "统一下单返回信息")
      private String placeOrderMsg;
  
      @ApiModelProperty(value = "统一下单返回信息json【用于生产二维码、Android ios唤醒支付等】")
      private String placeOrderJson;
  
      @ApiModelProperty(value = "商户号")
      private Long enterpriseId;
  
      @ApiModelProperty(value = "备注【订单门店，桌台信息】")
      private String memo;
  
      @ApiModelProperty(value = "二维码base64数据")
      private String qrCode;
  
      @ApiModelProperty(value = "是否有效")
      protected String enableFlag;
  
      String phone;
  
      private String memberCreator;
  
  
  }
  