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

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

/**
 * 会员业绩记录
 *
 * @author hzs
 * @since 2022-10-26
 */
@Data
@KeySequence("CU_MEMBER_ACHIEVE_SEQ")
@TableName("CU_MEMBER_ACHIEVE202501")
public class CuMemberAchieve implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 汇率
     */
    @TableField("PK_RATE")
    private Integer pkRate;

    /**
     * A区结余 （）
     */
    @TableField("A_BALANCE")
    private BigDecimal aBalance;

    /**
     * B区结余
     */
    @TableField("B_BALANCE")
    private BigDecimal bBalance;

    /**
     * A区累计金额
     */
    @TableField("A_SUM_AMOUNT")
    private BigDecimal aSumAmount;

    /**
     * B区累计金额
     */
    @TableField("B_SUM_AMOUNT")
    private BigDecimal bSumAmount;

    /**
     * A区累计业绩
     */
    @TableField("A_SUM_PV")
    private BigDecimal aSumPv;

    /**
     * B区累计业绩
     */
    @TableField("B_SUM_PV")
    private BigDecimal bSumPv;

    /**
     * A区新增金额
     */
    @TableField("A_NEW_AMOUNT")
    private BigDecimal aNewAmount;

    /**
     * B区新增金额
     */
    @TableField("B_NEW_AMOUNT")
    private BigDecimal bNewAmount;

    /**
     * A区新增业绩
     */
    @TableField("A_NEW_PV")
    private BigDecimal aNewPv;

    /**
     * B区新增业绩
     */
    @TableField("B_NEW_PV")
    private BigDecimal bNewPv;

    /**
     * A区累计真实金额
     */
    @TableField("A_SUM_REAL_AMOUNT")
    private BigDecimal aSumRealAmount;

    /**
     * B区累计真实金额
     */
    @TableField("B_SUM_REAL_AMOUNT")
    private BigDecimal bSumRealAmount;

    /**
     * A区累计真实业绩 （左区真实新增pv）
     */
    @TableField("A_SUM_REAL_PV")
    private BigDecimal aSumRealPv;

    /**
     * B区累计真实业绩
     */
    @TableField("B_SUM_REAL_PV")
    private BigDecimal bSumRealPv;

    /**
     * 复购A区结余
     */
    @TableField("REP_A_BALANCE")
    private BigDecimal repABalance;

    /**
     * 复购B区结余
     */
    @TableField("REP_B_BALANCE")
    private BigDecimal repBBalance;

    /**
     * 复购A区新增金额
     */
    @TableField("REP_A_NEW_AMOUNT")
    private BigDecimal repANewAmount;

    /**
     * 复购B区新增金额
     */
    @TableField("REP_B_NEW_AMOUNT")
    private BigDecimal repBNewAmount;

    /**
     * 复购A区新增业绩
     */
    @TableField("REP_A_NEW_PV")
    private BigDecimal repANewPv;

    /**
     * 复购B区新增业绩
     */
    @TableField("REP_B_NEW_PV")
    private BigDecimal repBNewPv;

    /**
     * 复购A区累计金额
     */
    @TableField("REP_A_SUM_AMOUNT")
    private BigDecimal repASumAmount;

    /**
     * 复购B区累计金额
     */
    @TableField("REP_B_SUM_AMOUNT")
    private BigDecimal repBSumAmount;

    /**
     * 复购A区累计业绩
     */
    @TableField("REP_A_SUM_PV")
    private BigDecimal repASumPv;

    /**
     * 复购B区累计业绩
     */
    @TableField("REP_B_SUM_PV")
    private BigDecimal repBSumPv;

    /**
     * 国家
     */
    @TableField("PK_COUNTRY")
    private Integer pkCountry;
    /**
     * 注册金额
     */
    @TableField("REGISTER_AMOUNT")
    private BigDecimal registerAmount;

    /**
     * 注册业绩
     */
    @TableField("REGISTER_PV")
    private BigDecimal registerPv;

    /**
     * 注册新增业绩
     */
    @TableField("REGISTER_NEW_PV")
    private BigDecimal registerNewPv;

    /**
     * 升级金额
     */
    @TableField("UPGRADE_AMOUNT")
    private BigDecimal upgradeAmount;

    /**
     * 升级业绩
     */
    @TableField("UPGRADE_PV")
    private BigDecimal upgradePv;

    /**
     * 升级新增业绩
     */
    @TableField("UPGRADE_NEW_PV")
    private BigDecimal upgradeNewPv;

    /**
     * 复购金额
     */
    @TableField("REPURCHASE_AMOUNT")
    private BigDecimal repurchaseAmount;

    /**
     * 复购业绩
     */
    @TableField("REPURCHASE_PV")
    private BigDecimal repurchasePv;

    /**
     * 复购新增业绩
     */
    @TableField("REPURCHASE_NEW_PV")
    private BigDecimal repurchaseNewPv;

    /**
     * 嗨粉金额
     */
    @TableField("HI_FUN_AMOUNT")
    private BigDecimal hiFunAmount;

    /**
     * 嗨粉业绩
     */
    @TableField("HI_FUN_PV")
    private BigDecimal hiFunPv;

    /**
     * 嗨粉新增业绩
     */
    @TableField("HI_FUN_NEW_PV")
    private BigDecimal hiFunNewPv;

    /**
     * 商城金额
     */
    @TableField("MALL_AMOUNT")
    private BigDecimal mallAmount;

    /**
     * 商城业绩
     */
    @TableField("MALL_PV")
    private BigDecimal mallPv;

    /**
     * 商城新增业绩
     */
    @TableField("MALL_NEW_PV")
    private BigDecimal mallNewPv;

    /**
     * 注册血缘新增业绩
     */
    @TableField("REGISTER_Blo_NEW_PV")
    private BigDecimal registerBloNewPv;

    /**
     * 升级血缘新增业绩
     */
    @TableField("UPGRADE_Blo_NEW_PV")
    private BigDecimal upgradeBloNewPv;

    /**
     * 复购血缘新增业绩
     */
    @TableField("REPURCHASE_Blo_NEW_PV")
    private BigDecimal repurchaseBloNewPv;

    /**
     * 嗨粉血缘新增业绩
     */
    @TableField("HI_FUN_Blo_NEW_PV")
    private BigDecimal hiFunBloNewPv;

    /**
     * 商城血缘新增业绩
     */
    @TableField("MALL_Blo_NEW_PV")
    private BigDecimal mallBloNewPv;

    /**
     * 备份A区结余
     */
    @TableField("R_A_BALANCE")
    private BigDecimal rABalance;

    /**
     * 备份B区结余
     */
    @TableField("R_B_BALANCE")
    private BigDecimal rBBalance;

    /**
     * 备份A区累计金额
     */
    @TableField("R_A_SUM_AMOUNT")
    private BigDecimal rASumAmount;

    /**
     * 备份B区累计金额
     */
    @TableField("R_B_SUM_AMOUNT")
    private BigDecimal rBSumAmount;

    /**
     * 备份A区累计业绩
     */
    @TableField("R_A_SUM_PV")
    private BigDecimal rASumPv;

    /**
     * 备份B区累计业绩
     */
    @TableField("R_B_SUM_PV")
    private BigDecimal rBSumPv;

    /**
     * 备份A区累计真实金额
     */
    @TableField("R_A_SUM_REAL_AMOUNT")
    private BigDecimal rASumRealAmount;

    /**
     * B区累计真实金额
     */
    @TableField("R_B_SUM_REAL_AMOUNT")
    private BigDecimal rBSumRealAmount;

    /**
     * 备份A区累计真实业绩
     */
    @TableField("R_A_SUM_REAL_PV")
    private BigDecimal rASumRealPv;

    /**
     * 备份B区累计真实业绩
     */
    @TableField("R_B_SUM_REAL_PV")
    private BigDecimal rBSumRealPv;

    /**
     * 备份复购A区结余
     */
    @TableField("R_REP_A_BALANCE")
    private BigDecimal rRepABalance;

    /**
     * 备份复购B区结余
     */
    @TableField("R_REP_B_BALANCE")
    private BigDecimal rRepBBalance;

    /**
     * 备份复购A区累计金额
     */
    @TableField("R_REP_A_SUM_AMOUNT")
    private BigDecimal rRepASumAmount;

    /**
     * 备份复购B区累计金额
     */
    @TableField("R_REP_B_SUM_AMOUNT")
    private BigDecimal rRepBSumAmount;

    /**
     * 备份复购A区累计业绩
     */
    @TableField("R_REP_A_SUM_PV")
    private BigDecimal rRepASumPv;

    /**
     * 备份复购B区累计业绩
     */
    @TableField("R_REP_B_SUM_PV")
    private BigDecimal rRepBSumPv;

    @TableField("NET_FIRST_ACHIEVE")
    private BigDecimal netFirstAchieve;

    @TableField("NET_REPURCHASE_ACHIEVE")
    private BigDecimal netRepurchaseAchieve;

    @TableField(exist = false)
    private Integer placeDept;

}
