package com.moral.api.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
/**
 * 
 * 督办单
 * 
 *
 * @author moral
 * @since 2022-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Supervision extends Model {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 组织id
     */
    private Integer organizationId;
    /**
     * 地区编码
     */
    private Integer cityCode;
    /**
     * 地区名称
     */
    private String cityName;
    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    /**
     * 被督办单位
     */
    private String superviseeUnit;
    /**
     * 督办单编号
     */
    private String number;
    /**
     * 问题类型
     */
    private String problemType;
    /**
     * 督办问题描述
     */
    private String problemDesc;
    /**
     * 现场图片
     */
    private String images;
    /**
     * 经办人
     */
    private String handler;
    /**
     * 督办次数
     */
    private Integer numberTimes;
    /**
     * 管控措施
     */
    private String measures;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    /**
     * 是否删除,0:不删除;1:删除
     */
    private String isDelete;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}