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

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.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.BigDecimalFormat;
import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员甩网业绩记录
 * </p>
 *
 * @author hzs
 * @since 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_SWING_NET_LOG_SEQ")
@TableName("CU_MEMBER_SWING_NET_LOG")
public class CuMemberSwingNetLog 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("PLACE_DEPT")
    private Integer placeDept;

    /**
     * 甩网真实业绩
     */
    @Excel(name = "甩网真实业绩",scale = 2)
    @TableField("NET_REAL_ACHIEVE")
    @BigDecimalFormat
    private BigDecimal netRealAchieve;
    /**
     * 甩网首购业绩
     */
    @Excel(name = "甩网首购业绩",scale = 2)
    @TableField("NET_FIRST_ACHIEVE")
    @BigDecimalFormat
    private BigDecimal netFirstAchieve;

    /**
     * 甩网复购业绩
     */
    @Excel(name = "甩网复购业绩",scale = 2)
    @TableField("NET_REPURCHASE_ACHIEVE")
    @BigDecimalFormat
    private BigDecimal netRepurchaseAchieve;

    /**
     * 变更后左区真实业绩
     */
    @Excel(name = "变更后左区真实业绩",scale = 2)
    @TableField("A_SUM_REAL_PV")
    @BigDecimalFormat
    private BigDecimal aSumRealPv;

    /**
     * 变更后右区真实业绩
     */
    @Excel(name = "变更后右区真实业绩",scale = 2)
    @TableField("B_SUM_REAL_PV")
    @BigDecimalFormat
    private BigDecimal bSumRealPv;

    /**
     * 变更后左区首购业绩
     */
    @Excel(name = "变更后左区首购业绩",scale = 2)
    @TableField("A_SUM_PV")
    @BigDecimalFormat
    private BigDecimal aSumPv;

    /**
     * 变更后右区首购业绩
     */
    @Excel(name = "变更后右区首购业绩",scale = 2)
    @TableField("B_SUM_PV")
    @BigDecimalFormat
    private BigDecimal bSumPv;

    /**
     * 变更后左区复购业绩
     */
    @Excel(name = "变更后左区复购业绩",scale = 2)
    @TableField("REP_A_SUM_PV")
    @BigDecimalFormat
    private BigDecimal repASumPv;

    /**
     * 变更后右区复购业绩
     */
    @Excel(name = "变更后右区复购业绩",scale = 2)
    @TableField("REP_B_SUM_PV")
    @BigDecimalFormat
    private BigDecimal repBSumPv;
    /**
     * 变更前左区真实业绩
     */
    @Excel(name = "变更前左区真实业绩",scale = 2)
    @TableField(exist = false)
    @BigDecimalFormat
    private BigDecimal oldASumRealPv;
    /**
     * 变更前右区真实业绩
     */
    @Excel(name = "变更前右区真实业绩",scale = 2)
    @TableField(exist = false)
    @BigDecimalFormat
    private BigDecimal oldBSumRealPv;
    /**
     * 变更前左区首购业绩
     */
    @Excel(name = "变更前左区首购业绩",scale = 2)
    @TableField(exist = false)
    @BigDecimalFormat
    private BigDecimal oldASumPv;
    /**
     * 变更前右区首购业绩
     */
    @Excel(name = "变更前右区首购业绩",scale = 2)
    @TableField(exist = false)
    @BigDecimalFormat
    private BigDecimal oldBSumPv;
    /**
     * 变更前左区复购业绩
     */
    @Excel(name = "变更前左区复购业绩",scale = 2)
    @TableField(exist = false)
    @BigDecimalFormat
    private BigDecimal oldRepASumPv;
    /**
     * 变更前右区复购业绩
     */
    @Excel(name = "变更前右区复购业绩",scale = 2)
    @TableField(exist = false)
    @BigDecimalFormat
    private BigDecimal oldRepBSumPv;


    /**
     * 甩网日期
     */
    @Excel(name = "甩网日期",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date swingingDate;


}
