package cn.pluss.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 首页数据统计表
 * </p>
 *
 * @author bzg
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_platform_data")
public class PlatformData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 交易金额
     */
    @TableField("transAmt")
    private BigDecimal transAmt;


    /**
     * 支付宝交易金额
     */
    @TableField("aliAmt")
    private BigDecimal aliAmt;


    /**
     * 微信交易金额
     */
    @TableField("wxAmt")
    private BigDecimal wxAmt;


    /**
     * 云闪付交易金额
     */
    @TableField("ysfAmt")
    private BigDecimal ysfAmt;


    /**
     * 交易笔数
     */
    @TableField("transNum")
    private Integer transNum;


    /**
     * 支付宝笔数
     */
    @TableField("aliNum")
    private Integer aliNum;


    /**
     * 微信交易笔数
     */
    @TableField("wxNum")
    private Integer wxNum;


    /**
     * 云闪付交易笔数
     */
    @TableField("ysfNum")
    private Integer ysfNum;


    /**
     * 退款金额
     */
    @TableField("refundAmt")
    private BigDecimal refundAmt;


    /**
     * 支付宝退款金额
     */
    @TableField("aliRefundAmt")
    private BigDecimal aliRefundAmt;


    /**
     * 微信退款金额
     */
    @TableField("wxRefundAmt")
    private BigDecimal wxRefundAmt;


    /**
     * 云闪付退款金额
     */
    @TableField("ysfRefundAmt")
    private BigDecimal ysfRefundAmt;


    /**
     * 门店新增数量
     */
    @TableField("storeNum")
    private Integer storeNum;


    /**
     * 会员新增数量
     */
    @TableField("memberNum")
    private Integer memberNum;


    /**
     * 推广员新增数量
     */
    @TableField("promoterNum")
    private Integer promoterNum;


    /**
     * 收益金额
     */
    @TableField("profitAmt")
    private BigDecimal profitAmt;


    /**
     * 推广分润金额
     */
    @TableField("shareAmt")
    private BigDecimal shareAmt;


    /**
     * 粉丝分润金额
     */
    @TableField("fansAmt")
    private BigDecimal fansAmt;


    /**
     * 实际收益金额
     */
    @TableField("actualAmt")
    private BigDecimal actualAmt;


    /**
     * 统计日期
     */
    @TableField("operatDate")
    private String operatDate;


    @TableField(value = "operateMonth", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private String operateMonth;

    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建时间 开始时间
     */
    @TableField(exist = false, condition = "createTime &gt; #{%s}")
    private Date createTimeStart;

    /**
     * 创建时间 截止时间
     */
    @TableField(exist = false, condition = "createTime &lt; #{%s}")
    private Date createTimeEnd;

}