/*
 *      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.dailyDuties.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.security.ht.entity.common.FlowEntity;

/**
 * 任务-监督检查表实体类
 *
 * @author BladeX
 * @since 2022-03-25
 */
@Data
@TableName("T_INSPECTION")
@ApiModel(value = "Inspection对象", description = "任务-监督检查表")
public class Inspection extends FlowEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* ID
	*/
		@ApiModelProperty(value = "ID")
		@TableId("ID")
	private String id;
	/**
	* 任务类型 usual-日常类 unusual-专项类
	*/
		@ApiModelProperty(value = "任务类型 usual-日常类 unusual-专项类")
		@TableField("TYPE")
	private String type;
	/**
	 * 检查类型 1-自检自查 2-内部检查 3-外部检查
	 */
	@ApiModelProperty(value = "检查类型 1-自检自查 2-内部检查 3-外部检查")
	@TableField("CHECK_TYPE")
	private String checkType;

	/**
	* 关联任务ID
	*/
		@ApiModelProperty(value = "关联任务ID")
		@TableField("TASK_ID")
	private String taskId;
	/**
	* 关联任务编号
	*/
		@ApiModelProperty(value = "关联任务编号")
		@TableField("TASK_NUM")
	private String taskNum;
	/**
	* 检查人
	*/
		@ApiModelProperty(value = "检查人")
		@TableField("INSPECT_USER")
	private String inspectUser;
	/**
	* 检查日期
	*/
		@ApiModelProperty(value = "检查日期")
		@TableField("INSPECT_DATE")
		@JsonFormat(pattern = "yyyy-MM-dd")
	private Date inspectDate;
	/**
	* 检查机构
	*/
		@ApiModelProperty(value = "检查机构")
		@TableField("INSPECT_DEP")
	private String inspectDep;

	/**
	* 被检查机构
	*/
		@ApiModelProperty(value = "被检查机构")
		@TableField("INSPECTED_DEP")
	private String inspectedDep;
	/**
	* 整改负责人
	*/
		@ApiModelProperty(value = "整改负责人")
		@TableField("RECTIFY_USER")
	private String rectifyUser;
	/**
	* 整改期限
	*/
		@ApiModelProperty(value = "整改期限")
		@TableField("RECTIFY_DEADLINE")
		@JsonFormat(pattern = "yyyy-MM-dd")
	private Date rectifyDeadline;
	/**
	* 检查附件
	*/
		@ApiModelProperty(value = "检查附件")
		@TableField("FILE_IDS")
	private String fileIds;
	/**
	* 整改附件
	*/
		@ApiModelProperty(value = "整改附件")
		@TableField("RECTIFY_FILE_IDS")
	private String rectifyFileIds;

	/**
	 * 业务状态（0-检查待提交,1-超时待检查,2-待整改,3-已整改,4-超时未整改,5-超时已整改,6-正常已提报,7-任务已终止）
	 */
	@ApiModelProperty(value = "业务状态（0-检查待提交,1-超时待检查,2-待整改,3-已整改,4-超时未整改,5-超时已整改,6-正常已提报,7-任务已终止）")
	@TableField("STATUS")
	private String status;
	/**
	* 部门id
	*/
		@ApiModelProperty(value = "部门id")
		@TableField("DEPT_ID")
	private String deptId;
	/**
	* 逻辑删除标识符;0-删除，1-正常
	*/
		@ApiModelProperty(value = "逻辑删除标识符;0-删除，1-正常")
		@TableField("DEL_FLAG")
		@TableLogic
	private String delFlag;
	/**
	* 所属模块
	*/
		@ApiModelProperty(value = "所属模块")
		@TableField("MODULE")
	private String module;
	/**
	* 检查结果是否存在异常（0-否，1-是）
	*/
		@ApiModelProperty(value = "检查结果是否存在异常（0-否，1-是）")
		@TableField("CHECK_STATUS")
	private String checkStatus;
	/**
	* 是否整改完成（0-否，1-是）
	*/
		@ApiModelProperty(value = "是否整改完成（0-否，1-是）")
		@TableField("RECTIFY_STATUS")
	private String rectifyStatus;
	/**
	 * 提报期限
	 */
	@ApiModelProperty(value = "提报期限")
	@TableField("DEADLINE")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date deadline;
	/**
	* 备注
	*/
		@ApiModelProperty(value = "备注")
		@TableField("NOTE")
	private String note;
	/**
	 * 提报用户
	 */
	@ApiModelProperty(value = "提报用户")
	@TableField("USER_ID")
	private String userId;
	/**
	 * 提报角色
	 */
	@ApiModelProperty(value = "提报角色")
	@TableField("ROLE_ID")
	private String roleId;
	/**
	 * 业务类型
	 */
	@ApiModelProperty(value = "业务类型")
	@TableField("BUSINESS_TYPE")
	private String businessType;

	/**
	 * 机构名称
	 */
	@ApiModelProperty(value = "机构名称")
	@TableField("dept_name")
	private String deptName;
}
