package com.xintong.visualinspection.bean;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.xintong.visualinspection.util.CustomJsonDateDeserializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 文件名：FwqCheckTask
 * 版本信息：日期：2018/4/11 Copyright 江苏省交通规划设计院 Corporation 2018 版权所有.
 */
@Data
public class FwqCheckTask implements Serializable {
    private Integer id;
    private String name;
    private Integer check_status;
    private Integer check_status_end;

    private Integer[] check_status_arr;
    private Integer area_id;
    private String area_name;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    private Date start_time;

    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date end_time;
    private Long checkman;
    private String checkman_name;
    private Long checked_dept;
    private String checked_dept_name;
    private String check_period;
    private Integer rule_id;
    private String remark;
    private Long recheckman;
    private String recheckman_name;
    private Integer period_id;
    private Integer invalid_from;

    private Long update_user;

    private Integer hasScore;

    private Integer invalidFrom;


    private Long[] dispatch_ids;

    private String check_status_name;
    //申诉结果
    private Integer appeal_result;
    //申诉结果
    private String appeal_result_name;
    //申诉id
    private Long appeal_id;


//            `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
//            `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
//            `check_status` int(11) NULL DEFAULT NULL COMMENT '任务状态',
//            `area_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '区域编号',
//            `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
//            `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '跟新时间',
//            `start_time` datetime(0) NULL DEFAULT NULL COMMENT '任务开始时间',
//            `end_time` datetime(0) NULL DEFAULT NULL COMMENT '任务结束时间',
//            `checkman` int(11) NULL DEFAULT NULL COMMENT '稽查人员编号',
//            `checked_dept` int(255) NULL DEFAULT NULL COMMENT '考核部门',
//            `rule_id` int(11) NULL DEFAULT NULL COMMENT '考核办法编号',
//            `remark` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
//            `recheckman` int(11) NULL DEFAULT NULL COMMENT '复核人员编号',
//            `period_id` int(11) NULL DEFAULT NULL COMMENT '周期编号',
//            `invalid_from` int(11) NULL DEFAULT 0 COMMENT '无效任务来源 0--正常任务无效   1--申诉无效任务  -1--查全部  -2--全不查'
}
