package com.zksy.WaterSupply.MonitorAlarm.dto.in;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 报警派发工单-入参
 */
@Data
@ApiModel(value = "报警派发工单-入参", description = "将供水监测报警派发为运维工单的入参")
public class AlarmDispatchInDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警ID", required = true, example = "uuid")
    private String alarmId;

    @ApiModelProperty(
            value = "工单类型",
            example = "1",
            allowableValues = "1,2,3",
            notes = "1-故障维修（默认） 2-日常巡检 3-设备保养"
    )
    private Integer orderType;

    @ApiModelProperty(
            value = "工单优先级",
            example = "1",
            allowableValues = "1,2,3",
            notes = "1-紧急 2-一般 3-低；不传时按报警等级映射（1级→紧急，2/3级→一般，4级→低）"
    )
    private Integer orderLevel;

    @ApiModelProperty(value = "工单问题描述，不传时取报警信息", example = "供水管网压力异常报警，请现场核实处理")
    private String orderDesc;

    @ApiModelProperty(value = "负责部门ID")
    private Long deptId;

    @ApiModelProperty(value = "计划完成时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date planFinishTime;
}
