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

import java.math.BigDecimal;

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.*;
import lombok.experimental.Accessors;

/**
 * 会员信息-会员考核记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_ASSESS_SEQ")
@TableName("CU_MEMBER_ASSESS")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberAssess extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 会员编号
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 期间
     */
    @TableField("PERIOD")
    private Integer period;

    /**
     * 结算月
     */
    @TableField("SETTLE_MONTH")
    private String settleMonth;

    /**
     * 考核类型( 0=复购考核,1=分红考核)
     */
    @TableField("ASSESS_TYPE")
    private Integer assessType;

    /**
     * 考核奖衔
     */
    @TableField("PK_AWARDS")
    private Integer pkAwards;

    /**
     * 考核指标
     */
    @TableField("ASSESS_TARGET")
    private BigDecimal assessTarget;

    /**
     * 是否免考(0=是，1=否)
     */
    @TableField("IS_EXAMINE")
    private Integer isExamine;

    /**
     * 考核状态 (0=考核通过,1=免考通过,2=考核不通过,3=不考核)
     */
    @TableField("ASSESS_STATUS")
    private Integer assessStatus;

    /**
     * 上月结余业绩
     */
    @TableField("MONTH_BALANCE")
    private BigDecimal monthBalance;

    /**
     * 考核月新增业绩
     */
    @TableField("MONTH_ADD")
    private BigDecimal monthAdd;

    /**
     * 本月新增业绩
     */
    @TableField("CUR_MONTH_ADD")
    private BigDecimal curMonthAdd;

    /**
     * 考核月使用业绩
     */
    @TableField("MONTH_USED")
    private BigDecimal monthUsed;

    /**
     * 考核月剩余业绩
     */
    @TableField("MONTH_SURPLUS")
    private BigDecimal monthSurplus;


}
