2024-09-06 17:37:31 +08:00
|
|
|
|
package com.gunshi.project.xyt.model;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
|
|
|
import com.gunshi.project.xyt.validate.markers.Update;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 描述: 考核组成员
|
|
|
|
|
|
* author: xusan
|
|
|
|
|
|
* date: 2024-09-05 14:19:46
|
|
|
|
|
|
*/
|
|
|
|
|
|
@Schema(description="考核组成员")
|
|
|
|
|
|
@Data
|
|
|
|
|
|
@TableName("public.assess_team")
|
|
|
|
|
|
public class AssessTeam implements Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
public final static String thisTableName = "AssessTeam";
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 主键
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableId(value="id", type= IdType.AUTO)
|
|
|
|
|
|
@Schema(description="主键")
|
|
|
|
|
|
@NotNull(message = "id不能为空",groups = { Update.class})
|
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考核对象id
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="task_id")
|
|
|
|
|
|
@Schema(description="考核任务id")
|
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
|
private Long taskId;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考核对象id
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="object_id")
|
|
|
|
|
|
@Schema(description="考核对象id")
|
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
|
private Long objectId;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考核成员id
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="team_user_id")
|
|
|
|
|
|
@Schema(description="考核成员id")
|
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
|
private Long teamUserId;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考核成员
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="team_user_name")
|
|
|
|
|
|
@Schema(description="考核成员")
|
|
|
|
|
|
@Size(max = 100,message = "考核成员最大长度要小于 100")
|
|
|
|
|
|
private String teamUserName;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 标准得分
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="standard_score")
|
|
|
|
|
|
@Schema(description="标准得分")
|
|
|
|
|
|
private Integer standardScore;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考核得分
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="assess_score")
|
|
|
|
|
|
@Schema(description="考核得分")
|
|
|
|
|
|
private BigDecimal assessScore;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 考核等级(1优秀 2良好 3合格)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="assess_level")
|
|
|
|
|
|
@Schema(description="考核等级(1优秀 2良好 3合格)")
|
|
|
|
|
|
private Integer assessLevel;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2024-09-09 14:14:31 +08:00
|
|
|
|
* 状态(0未启动 1评分中 2已完成 9评分保存)
|
2024-09-06 17:37:31 +08:00
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="status")
|
2024-09-09 14:14:31 +08:00
|
|
|
|
@Schema(description="状态(0未启动 1评分中 2已完成 9评分保存)")
|
2024-09-06 17:37:31 +08:00
|
|
|
|
private Integer status;
|
|
|
|
|
|
|
|
|
|
|
|
}
|