package com.hzs.common.domain.activity.ext;/**
 * @Description:
 * @Author: yuhui
 * @Time: 2023/6/17 10:09
 * @Classname: SaTreeOrderExt
 * @PackageName: com.hzs.common.domain.activity.ext
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.BigDecimalFormat;
import com.hzs.common.core.annotation.Excel;
import lombok.Data;

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

/**
 *@BelongsProject: hzs_cloud
 *@BelongsPackage: com.hzs.common.domain.activity.ext
 *@Author: yh
 *@CreateTime: 2023-06-17  10:09
 *@Description: TODO
 *@Version: 1.0
 */
@Data
public class SaTreeOrderExt {


    private Long pkId;


    /**
     * 会员主键
     */
    private Long pkMember;

    /**
     * 活动基本配置主键
     */
    private Long pkBaseId;

    /**
     * 活动规则主键
     */
    private Long pkTreeRule;


    /**
     * 订单状态  (0=待支付,1=已支付)
     */
    private Integer orderStatus;


    /**
     * 会员编号
     */
    @Excel(name = "会员编号")
    private String memberCode;

    /**
     * 会员名称
     */
    @Excel(name = "会员姓名")
    private String memberName;

    /**
     * 电话（联系方式）
     */
    @Excel(name = "联系方式")
    private String phone;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderCode;


    /**
     * 结算等级
     */
    private Integer pkSettleGrade;


    /**
     * 结算等级 字符
     */
    @Excel(name = "会员等级")
    private String settleGradeStr;

    /**
     * 奖衔
     */
    private Integer pkAwards;

    /**
     * 奖衔 字符
     */
    @Excel(name = "真实奖衔")
    private String awardsStr;


    /**
     * 购买数量
     */
    @Excel(name = "购买数量")
    private Integer quantity;
    /**
     * 价格
     */
    @BigDecimalFormat
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * 订单金额
     */
    @BigDecimalFormat
    @Excel(name = "金额")
    private BigDecimal orderAmount;

    /**
     * 支付时间
     */
    @Excel(name = "购买日期",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
}
