RectificationInfoAnalyseVO.java 1.8 KB
package com.skua.modules.ajh.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
public class RectificationInfoAnalyseVO {
    @ApiModelProperty("安全隐患数量:同比上年")
    Integer countYearOverYear;

    @ApiModelProperty("安全隐患数量:环比上月")
    Integer countChain;

    @ApiModelProperty("整改完成率:同比上年")
    String completeRateYearOverYear;

    @ApiModelProperty("整改完成率:环比上月")
    String completeRateChain;

    @ApiModelProperty("总整改完成率")
    String totalCompleteRate;

    @ApiModelProperty("曲线图:整改完成率")
    List<Map<String,Object>> completeRateHistogramList;

    @ApiModelProperty("柱状图:安全隐患数量")
    List<Histogram> countHistogramList;

    @ApiModelProperty("柱状图:风险等级分布")
    List<Histogram> levelHistogramList;

    @ApiModelProperty("柱状图:安全责任人分布")
    List<Histogram> dutyHistogramList;

    @ApiModelProperty("雷达图:安全隐患伤害类别")
    List<XAndCount> classifyList;

    @ApiModelProperty("饼图:安全隐患区域分布")
    List<XAndCount> areaList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Histogram{
        @ApiModelProperty("x轴")
        String x;
        @ApiModelProperty("未处理数量")
        Integer unhandleCount;
        @ApiModelProperty("已处理数量")
        Integer handleCount;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class XAndCount{
        @ApiModelProperty("x")
        String x;
        @ApiModelProperty("数量")
        Integer count;
    }
}