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 java.time.LocalDateTime;
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-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PersonScore extends Model<PersonScore> {

    private static final long serialVersionUID=1L;

    /**
     * 个人分表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 德
     */
    @TableField("virtue")
    private Double virtue=0.0;

    /**
     * 能
     */
    @TableField("can")
    private Double can=0.0;

    /**
     * 勤
     */
    @TableField("diligence")
    private Double diligence=0.0;

    /**
     * 绩
     */
    @TableField("performance")
    private Double performance=0.0;

    /**
     * 廉
     */
    @TableField("lian")
    private Double lian=0.0;

    /**
     * 创建时间
     */
    @TableField("indate")
    private LocalDateTime indate;

    /**
     * 打分时间字符串
     */
    @TableField("time_str")
    private String timeStr;

    /**
     * 打分主键
     */
    @TableField("score_id")
    private Integer scoreId;


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

}
