package com.cool.store.entity.wallet;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

/**
 * 钱包交易单
 */
@Table(name = "zxjp_wallet_trade")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WalletTradeDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 业务模块
     */
    private String module;

    /**
     * 单号
     */
    @Column(name = "pay_no")
    private String payNo;

    /**
     * 交易流水号
     */
    @Column(name = "trade_id")
    private String tradeId;

    /**
     * 交易类型，1转账 2-提现
     */
    private Integer type;

    /**
     * 付款人
     */
    @Column(name = "pay_user_name")
    private String payUserName;

    /**
     * 付款金额
     */
    @Column(name = "pay_amount")
    private BigDecimal payAmount;

    /**
     * 付款状态，1已支付、2支付失败、3支付中
     */
    @Column(name = "pay_status")
    private Integer payStatus;

    /**
     * 支付时间
     */
    @Column(name = "pay_time")
    private Date payTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 批量分账批次号
     */
    @Column(name = "batch_code")
    private String batchCode;
}