package com.hssx.pcbms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴涛涛
 * @since 2019-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Score extends Model<Score> {

    private static final long serialVersionUID=1L;

    /**
     * 评分表主键
     */
    @TableId(value = "score_id", type = IdType.AUTO)
    private Integer scoreId;

    /**
     * 个人分
     */
    @TableField("personal_score")
    private Double personalScore;

    /**
     * 建议分
     */
    @TableField("idea_score")
    private Double ideaScore;

    /**
     * 总得分
     */
    @TableField("total")
    private Double total;

    /**
     * 评分原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 评分人id
     */
    @TableField("rater_id")
    private Integer raterId;

    /**
     * 评分人姓名
     */
    @TableField("rater")
    private String rater;

    /**
     * 被评分者的id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 年-月份如：2019-10
     */
    @TableField("scoring_year_month")
    private String scoringYearMonth;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private String deptId;


    @Override
    protected Serializable pkVal() {
        return this.scoreId;
    }

}
