package com.njcn.supervision.pojo.param.problem;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SupervisionUserComplaintParam {


    @ApiModelProperty(value = "用户类别")
    private String userCategory;

    @ApiModelProperty(value = "用户编号")
    private String userNumber;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "责任单位id，取ISC平台上的组织id")
    private String dutyOrgId;

    @ApiModelProperty(value = "投诉名称")
    private String complaintName;

    @ApiModelProperty(value = "投诉内容")
    private String complaintText;

    @ApiModelProperty(value = "稳态指标")
    private String steadyIndicator;

    @ApiModelProperty(value = "暂态指标")
    private String transientIndicators;

    @ApiModelProperty(value = "异常指标")
    private String anomalyMetrics;

    @ApiModelProperty(value = "是否实现检测(0-否 1-是)")
    private Integer detectionFlag;

    @ApiModelProperty(value = "监测点编号")
    private String monitorNumber;

    @ApiModelProperty(value = "监测点名称")
    private String monitorName;

    @ApiModelProperty(value = "是否发起警告单(0-否 1-是)")
    private Integer initiateWarningFlag;

    @ApiModelProperty(value = "状态：0-删除 1-正常")
    private Integer state;

    @ApiModelProperty(value = "审核状态")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @Data
    @EqualsAndHashCode(callSuper = true)
    public  static class SupervisionUserComplaintUpdate extends SupervisionUserComplaintParam {

        @ApiModelProperty("id")
        private String Id;

    }

    /**
     * 分页查询实体
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class SupervisionUserComplaintQueryParam extends BaseParam {

        /**
         * 负责单位
         */
        String deptIndex;
        String dealState;

    }

}
