package com.sqx.modules.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sqx.modules.coupon.entity.Coupon;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @description pay_classify
 * @author fang
 * @date 2022-04-06
 */
@Data
public class PayClassify implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * 充值分类id
     */
    private Long payClassifyId;

    /**
     * 售价
     */
    private BigDecimal price;

    private BigDecimal money;

    /**
     * 优惠券-作废
     */
//    private Long couponId;

    /**
     * 赠送数量-作废
     */
//    private Integer giveNum;

//    @TableField(exist = false)
//    private Coupon coupon;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 时间
     */
    private String createTime;

    /**
     * 子表列表
     */
    @TableField(exist = false)
    private List<PayClassifyDetail> detailList;

    /**
     * 获取金额
     */
    @TableField(exist = false)
    private BigDecimal sumMoney;

    /**
     * APP购买描述
     */
    @TableField(exist = false)
    private String remarks;

    public PayClassify() {}
}
