package com.yuchen.saas.park.api.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @ClassName FireInspectListResponse
 * @Description 消防巡查点任务列表
 * @Author 肖祥
 * @Date 2022/10/19 14:05
 * @Version 1.0。0
 **/
@Data
public class FireInspectTaskPointResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "任务id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long taskId;

    @ApiModelProperty(value = "巡查点id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long pointId;

    @ApiModelProperty(value = "巡查点名称")
    private String pointName;

    @ApiModelProperty(value = "所属计划名称")
    private String planName;

    @ApiModelProperty(value = "所属区域名称")
    private String areaName;
    @ApiModelProperty(value = "所属区域id")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long areaId;
    @ApiModelProperty(value = "详细地址")
    private String detailAddress;

    @ApiModelProperty(value = "巡查状态:0是未巡查,1是进行中,已巡查")
    private Integer pointStatus;

    @ApiModelProperty(value = "巡查点状态名称")
    private String pointStatusName;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "最近巡查时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date lastUpdateTime;

    @ApiModelProperty(value = "发现隐患数")
    private Integer taskTroubleNum;
}
