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

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.nest.springwrap.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName FireInspectTaskEntity
 * @Description 消防巡查任务实体类
 * @Author 肖祥
 * @Date 2022/10/20 10:40
 * @Version 1.0。0
 **/
@Data
@TableName("pmg_bat_fire_inspect_task")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "消防巡查任务实体类", description = "消防巡查任务实体类")
public class FireInspectTaskEntity extends TenantEntity {
    @ApiModelProperty(value = "园区id")
    private Long parkId;


    @ApiModelProperty(value = "巡查计划区域")
    private Long areaId;

    @ApiModelProperty(value = "巡查计划ID")
    private Long inspectPlanId;

    @ApiModelProperty(value = "巡查任务名称")
    private String name;

    @ApiModelProperty(value = "任务开始时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date taskStartTime;

    @ApiModelProperty(value = "任务结束时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date taskEndTime;

    @ApiModelProperty(value = "实际完成时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date taskActualTime;

    @ApiModelProperty(value = "巡查人")
    private Long inspectUser;

    @ApiModelProperty(value = "任务进度:比如1/10")
    private String taskProcessor;

    @ApiModelProperty(value = "任务状态:1、未开始2、进行中3、已结束")
    private Integer taskStatus;

    @ApiModelProperty(value = "任务完成情况:1、按时完成2、超时完成3、异常终止4、超时未完成")
    private Integer taskCompletionSituation;

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

    @ApiModelProperty(value = "是否发现隐患:0未发现,1是发现")
    private Integer hasTrouble;



}
