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.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 用户管理奖统计表
 * </p>
 *
 * @author crystal
 * @since 2022-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_user_manage_profit")
public class UserManageProfit implements Serializable {

    private static final long serialVersionUID = 1L;

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


    /**
     * 用户ID
     */
    @TableField("userId")
    private Integer userId;


    /**
     * 父级用户ID
     */
    @TableField("parentId")
    private Integer parentId;


    /**
     * 用户角色
     */
    @TableField("roleCode")
    private String roleCode;


    /**
     * 用户等级
     */
    @TableField("levelCode")
    private String levelCode;


    /**
     * t2流水
     */
    @TableField("t2Flow")
    private BigDecimal t2Flow;


    /**
     * t3流水
     */
    @TableField("t3Flow")
    private BigDecimal t3Flow;


    /**
     * t2收益
     */
    @TableField("t2Profit")
    private BigDecimal t2Profit;


    /**
     * t3收益
     */
    @TableField("t3Profit")
    private BigDecimal t3Profit;


    /**
     * 创建时间
     */
    @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;

    /**
     * 收益日期
     */
    @TableField("profitDate")
    private LocalDate profitDate;


    @TableField("profitMonth")
    private String profitMonth;


    /**
     * 备注
     */
    @TableField("remark")
    private String remark;


}