package com.njcn.process.pojo.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author wr
 * @description
 * @date 2023/9/1 14:32
 */
@Data
public class SupvAlarmBackParam extends BaseParam {

    @ApiModelProperty(value = "监督单位",required = true)
    private String orgId;

    @ApiModelProperty(value = "告预警单编号",required = true)
    private String workAlarmId;

    @Data
    public  static class AlarmBackInsert {
        @ApiModelProperty("项目执行单位编号")
        private String executeOrgId;

        @ApiModelProperty("项目执行单位名称")
        private String executeOrgName;

        @ApiModelProperty("采取措施")
        @NotBlank(message = "采取措施不能为空")
        private String treatmentMeasures;

        @ApiModelProperty("填报人id,取ISC平台上的人员id")
        @NotBlank(message = "采取措施不能为空")
        private String fillUserId;

        @ApiModelProperty("填报人名称,取ISC平台上的人员名称")
        @NotBlank(message = "填报人名称不能为空")
        private String fillUserName;

        @ApiModelProperty("完成时间	yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @NotNull(message = "完成时间不能为空")
        private LocalDateTime completeTime;

        @ApiModelProperty("告预警单id,关联告预警单表")
        @NotBlank(message = "告预警单编号不能为空")
        private String workAlarmId;

        @ApiModelProperty("反馈单位id,取ISC平台上的组织id")
        private String feedbackOrgId;

        @ApiModelProperty("反馈单位名称,取ISC平台上的组织名称")
        private String feedbackOrgName;

    }

    @Data
    public  static class AlarmBackUpdate extends AlarmBackInsert {

        @ApiModelProperty("预告警单反馈编号")
        @NotBlank(message = "预告警单反馈编号不能为空")
        private String alarmBackId;

    }
}
