package beilv.cardpurchaserecord.domain;

import beilv.common.annotation.Excel;
import beilv.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 购卡记录对象 card_purchase_record
 *
 * @author ruoyi
 * @date 2025-01-02
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Alias("CardPurchaseRecord")
public class CardPurchaseRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户id
     */
//    @Excel(name = "用户id")
    private String userId;

    @Excel(name = "用户账户")
    private String userName;

    //    @Excel(name = "姓名")
    private String realName;

    @Excel(name = "手机号码")
    private String mobile;

    /**
     * 卡种id
     */
//    @Excel(name = "卡种id")
    private String cardId;

    /**
     * 卡种名称
     */
    @Excel(name = "卡种名称")
    private String cardName;

    private String cardType;

    @Excel(name = "卡种类型")
    private String cardTypeLabel;

    private Integer totalNumber;

    private BigDecimal originalPrice;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal memberPrice;

    private String point;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 支付方式
     */
    @Excel(name = "支付方式")
    private String paymentWay;

    /**
     * 状态（待支付：payment_status_to_be_paid、已支付：payment_status_have_paid、已取消：payment_status_cancelled、已退款：payment_status_refunded）
     */
    private String type;

    @Excel(name = "状态")
    private String typeLabel;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String notes;

    /**
     * 版本
     */
//    @Excel(name = "版本")
    private String version;

    //订单号
    private String orderId;

    private String vipCardId;

    private BigDecimal practicalPrice;

}
