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

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;

import java.math.BigDecimal;

/**
 * 会员补贴明细
 *
 * @author zhangjing
 * @since 2024-04-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_PERK_DETAIL_SEQ")
@TableName("CU_MEMBER_PERK_DETAIL")
public class CuMemberPerkDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 会员补贴配置ID
     */
    @TableField("PK_MEMBER_PERK")
    private Long pkMemberPerk;

    /**
     * 计算日期（年-月-日）
     */
    @TableField("CALCULATE_DATE")
    private String calculateDate;

    /**
     * 订单政策币
     */
    @TableField("POLICY_AMOUNT")
    private BigDecimal policyAmount;

    /**
     * 订单复购券
     */
    @TableField("REPURCHASE_COUPON_AMOUNT")
    private BigDecimal repurchaseCouponAmount;

    /**
     * 首购金额
     */
    @TableField("FIRST_AMOUNT")
    private BigDecimal firstAmount;

    /**
     * 首购业绩
     */
    @TableField("FIRST_ACHIEVE")
    private BigDecimal firstAchieve;

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

    /**
     * 复购业绩
     */
    @TableField("REPURCHASE_ACHIEVE")
    private BigDecimal repurchaseAchieve;

    /**
     * 去重首购金额
     */
    @TableField("DISTINCT_FIRST_AMOUNT")
    private BigDecimal distinctFirstAmount;

    /**
     * 去重首购业绩
     */
    @TableField("DISTINCT_FIRST_ACHIEVE")
    private BigDecimal distinctFirstAchieve;

    /**
     * 去重复购金额
     */
    @TableField("DISTINCT_REPURCHASE_AMOUNT")
    private BigDecimal distinctRepurchaseAmount;

    /**
     * 去重复购业绩
     */
    @TableField("DISTINCT_REPURCHASE_ACHIEVE")
    private BigDecimal distinctRepurchaseAchieve;

}
