package com.hzs.common.domain.member.annuity;

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

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 奖金年金明细表
 * </p>
 *
 * @author hzs
 * @since 2023-10-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("CU_MEMBER_ANNUITY")
@KeySequence("CU_MEMBER_ANNUITY_SEQ")
public class CuMemberAnnuity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 会员主键
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 单价
     */
    @TableField("UNIT_PRICE")
    private BigDecimal unitPrice;

    /**
     * 数量
     */
    @TableField("QUANTITY")
    private Integer quantity;

    /**
     * 总价
     */
    @TableField("TOTAL_PRICE")
    private BigDecimal totalPrice;


    /**
     * 兑换年金编号
     */
    @TableField("CODE")
    private String code;

    /**
     * 买前剩余（天数）
     */
    @TableField("BEFORE_RESIDUE")
    private Long beforeResidue;

    /**
     * 买后剩余（天数）
     */
    @TableField("AFTER_RESIDUE")
    private Long afterResidue;

    /**
     * 结算等级
     */
    @TableField("PK_SETTLE_GRADE")
    private Integer pkSettleGrade;


    /**
     * 真实奖衔
     */
    @TableField("PK_AWARDS")
    private Integer pkAwards;

    /**
     * 有效期，到期日期
     */
    @TableField("EXPIRE_DATE")
    private Date expireDate;
}
