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 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_user_reward_info")
public class UserRewardInfo implements Serializable {

    private static final long serialVersionUID = 1L;

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


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


    /**
     * 区域等级1：表示省 2：市 3：区域（县）
     */
    @TableField("areaLevel")
    private Integer areaLevel;


    /**
     * 区域code
     */
    @TableField("areaNo")
    private String areaNo;


    /**
     * 区域名称
     */
    @TableField("areaName")
    private String areaName;


    /**
     * 状态1：正常 -1禁用
     */
    @TableField("status")
    private Integer status;


    /**
     * rId
     */
    @TableField("reId")
    private Integer reId;


    @TableField("rName")
    private String rName;

    /**
     * 创建时间
     */
    @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(exist = false)
    private BigDecimal scale;

    private String phone;

    /**
     * 登录账号
     */
    @TableField(exist = false)
    private String loginName;

}