/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.security.trans.assessment.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.security.ht.entity.common.BaseEntity;
import org.security.ht.entity.common.FlowEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 考核评价信息记录表实体类
 *
 * @author BladeX
 * @since 2022-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("T_ASSESSMENT")
@ApiModel(value = "Assessment对象", description = "考核评价信息记录表")
public class Assessment extends FlowEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@ApiModelProperty(value = "id")
	@TableId("ID")
	private String id;
	/**
	 * 考核对象;1-内部机构，2-相关方 3-项目
	 */
	@ApiModelProperty(value = "考核对象;1-内部机构，2-相关方，3-项目")
	@TableField("TYPE")
	private String type;
	/**
	 * 考核类型;1-机构自评，2-行内考核，3-外部考核，4-外包公司考核，5-项目考核
	 */
	@ApiModelProperty(value = "考核类型;1-机构自评，2-行内考核，3-外部考核，4-相关方考核,5-项目考核")
	@TableField("ASSESSMENT_TYPE")
	private String assessmentType;
	/**
	 * 考评类型;1-综合考评，2-专项考评
	 */
	@ApiModelProperty(value = "考评类型;1-综合考评，2-专项考评")
	@TableField("EVALUATION_TYPE")
	private String evaluationType;
	/**
	 * 考核名称
	 */
	@ApiModelProperty(value = "考核名称")
	@TableField("EVALUATION_NAME")
	private String evaluationName;
	/**
	 * 考评开始日期
	 */
	@ApiModelProperty(value = "考评开始日期")
	@TableField("EVALUATION_START_DATE")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date evaluationStartDate;
	/**
	 * 考评结束日期
	 */
	@ApiModelProperty(value = "考评结束日期")
	@TableField("EVALUATION_END_DATE")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date evaluationEndDate;
	/**
	 * 考评方id
	 */
	@ApiModelProperty(value = "考评方id")
	@TableField("EVALUATOR")
	private String evaluator;
	/**
	 * 考评方名称
	 */
	@ApiModelProperty(value = "考评方名称")
	@TableField("EVALUATOR_NAME")
	private String evaluatorName;
	/**
	 * 被考评方id
	 */
	@ApiModelProperty(value = "被考评方id")
	@TableField("EVALUATED")
	private String evaluated;
	/**
	 * 被考评方名称
	 */
	@ApiModelProperty(value = "被考评方名称")
	@TableField("EVALUATED_NAME")
	private String evaluatedName;
	/**
	 * 考核总分
	 */
	@ApiModelProperty(value = "考核总分")
	@TableField("TOTAL_SCORE")
	private BigDecimal totalScore;
	/**
	 * 最终得分
	 */
	@ApiModelProperty(value = "最终得分")
	@TableField("FINAL_SCORE")
	private BigDecimal finalScore;
	/**
	 * 加分项总分
	 */
	@ApiModelProperty(value = "加分项总分")
	@TableField("PLUSES_SCORE")
	private BigDecimal plusesScore;
	/**
	 * 扣分项总分
	 */
	@ApiModelProperty(value = "扣分项总分")
	@TableField("DEDUCTION_SCORE")
	private BigDecimal deductionScore;
	/**
	 * 部门id
	 */
	@ApiModelProperty(value = "部门id")
	@TableField("DEPT_ID")
	private String deptId;
	/**
	 * 部门名称
	 */
	@ApiModelProperty(value = "部门名称")
	@TableField("DEPT_NAME")
	private String deptName;
	/**
	 * 逻辑删除标识符;;0-删除,1-正常
	 */
	@ApiModelProperty(value = "逻辑删除标识符;;0-删除,1-正常")
	@TableField("DEL_FLAG")
	private String delFlag;

	@ApiModelProperty(value = "备注")
	@TableField("REMAKE")
	private String remake;

	@ApiModelProperty(value = "考核年份")
	@TableField("ASSESSMENT_YEAR")
	private String assessmentYear;

	@ApiModelProperty(value = "考核月份")
	@TableField("ASSESSMENT_MONTH")
	private String assessmentMonth;

	@ApiModelProperty(value = "状态（0-待提交，1-提交待确认 2-已确认)")
	@TableField("STATE")
	private String state;

	@ApiModelProperty(value = "需求符合情况")
	@TableField("EVA1")
	private BigDecimal eva1;

	@ApiModelProperty(value = "项目管理水平")
	@TableField("EVA2")
	private BigDecimal eva2;

	@ApiModelProperty(value = "人力及团队水平")
	@TableField("EVA3")
	private BigDecimal eva3;

	@ApiModelProperty(value = "项目实施质量")
	@TableField("EVA4")
	private BigDecimal eva4;

	@ApiModelProperty(value = "项目交付情况")
	@TableField("EVA5")
	private BigDecimal eva5;

	@ApiModelProperty(value = "存在问题及建议")
	@TableField("PRB_AND_ADV")
	private String prbAndAdv;

	@ApiModelProperty(value = "下步工作要求")
	@TableField("NEXT_WORK_REQUIREMENT")
	private String nextWorkRequirement;
	/**
	 * 被考评项目id
	 */
	@ApiModelProperty(value = "被考评项目id")
	@TableField("PROJECT_ID")
	private String projectId;
	/**
	 * 被考评项目id
	 */
	@ApiModelProperty(value = "被考评项目id")
	@TableField("PROJECT_NAME")
	private String projectName;
	/**
	 * 附件groupName
	 */
	@ApiModelProperty(value = "附件groupName")
	@TableField("GROUP_NAME")
	private String groupName;
	/**
	 * 提报用户
	 */
	@ApiModelProperty(value = "提报用户")
	@TableField("USER_ID")
	private String userId;
	/**
	 * 提报角色
	 */
	@ApiModelProperty(value = "提报角色")
	@TableField("ROLE_ID")
	private String roleId;
	/**
	 * 被考评机构id串；用于前端级联框显示
	 */
	@ApiModelProperty(value = "被考评机构id串；用于前端级联框显示")
	@TableField("dept_cascade")
	private String deptCascade;

}
