zhanghua
2022-11-07 36a6a9cda6143d0d2494cd2da523fd99ec70834c
驾驶舱接口修改
4个文件已修改
95 ■■■■■ 已修改文件
document/驾驶舱数据接口文档(ai物联和综合决策).docx 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/vo/cockpit/statisticsEvents/StatisticsEventsVO.java 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
document/¼ÝÊ»²ÕÊý¾Ý½Ó¿ÚÎĵµ£¨aiÎïÁªºÍ×ۺϾö²ß£©.docx
Binary files differ
ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java
@@ -17,6 +17,7 @@
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
@@ -112,4 +113,41 @@
        indexSignsVO.setEvaluationData(10);
        return CommonResult.success(indexSignsVO);
    }
    @ApiOperation(value = "top10")
    @GetMapping("/top10")
    public CommonResult<List<StatisticsEventsVO.Top10VO>> top10(@Validated CockpitVO params) {
        checkApiUtil.cockpit(params);
        List<StatisticsEventsVO.Top10VO> ls = new ArrayList<>();
        ls.add(new StatisticsEventsVO.Top10VO("xx中队", 100.0));
        ls.add(new StatisticsEventsVO.Top10VO("xx中队", 90.0));
        ls.add(new StatisticsEventsVO.Top10VO("xx中队", 80.0));
        ls.add(new StatisticsEventsVO.Top10VO("xx中队", 70.0));
        return CommonResult.success(ls);
    }
    @ApiOperation(value = "AI算法")
    @GetMapping("/arithmetic_event")
    public CommonResult<List<StatisticsEventsVO.ArithmeticVO>> arithmeticEvent(@Validated CockpitVO params) {
        checkApiUtil.cockpit(params);
        List<StatisticsEventsVO.ArithmeticVO> ls = new ArrayList<>();
        ls.add(new StatisticsEventsVO.ArithmeticVO("xx中队", 10, 0.1));
        ls.add(new StatisticsEventsVO.ArithmeticVO("xx中队", 20, 0.2));
        ls.add(new StatisticsEventsVO.ArithmeticVO("xx中队", 30, 0.3));
        ls.add(new StatisticsEventsVO.ArithmeticVO("xx中队", 40, 0.4));
        return CommonResult.success(ls);
    }
    @ApiOperation(value = "城市体征看板")
    @GetMapping("/city_panel")
    public CommonResult<StatisticsEventsVO.CityPanelVo> cityPanel(@Validated CockpitVO params) {
        checkApiUtil.cockpit(params);
        StatisticsEventsVO.CityPanelVo vo = new StatisticsEventsVO.CityPanelVo(92, 22, 12, 22, 34, 99, 9, 34, 6);
        return CommonResult.success(vo);
    }
}
ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java
@@ -24,6 +24,9 @@
        @ApiModelProperty(value = "比例")
        private BigDecimal ratio;
        @ApiModelProperty(value = "上升下降")
        private Boolean up;
    }
    @Data
@@ -99,4 +102,6 @@
        @ApiModelProperty(value = "来源")
        private String source;
    }
}
ycl-platform/src/main/java/com/ycl/vo/cockpit/statisticsEvents/StatisticsEventsVO.java
@@ -2,6 +2,7 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.math.BigDecimal;
@@ -92,4 +93,55 @@
        @ApiModelProperty(value = "动态考核数据")
        private Integer evaluationData;
    }
    @Data
    @AllArgsConstructor
    @ApiModel(description = "中队top10数据信息")
    public static class Top10VO {
        @ApiModelProperty(value = "中队名称")
        private String name;
        @ApiModelProperty(value = "分数")
        private Double score;
    }
    @ApiModel(description = "AI算法")
    @Data
    @AllArgsConstructor
    public static class ArithmeticVO {
        @ApiModelProperty(value = "类型")
        private String name;
        @ApiModelProperty(value = "数量")
        private Integer count;
        @ApiModelProperty(value = "比例")
        private Double ratio;
    }
    @ApiModel(description = "城市体征看板")
    @Data
    @AllArgsConstructor
    public static class CityPanelVo {
        @ApiModelProperty(value = "事件总数")
        private Integer event;
        @ApiModelProperty(value = "超时事件数")
        private Integer overtime;
        @ApiModelProperty(value = "事件处置率")
        private Integer disposePercentage;
        @ApiModelProperty(value = "油烟排放超标")
        private Integer lampblack;
        @ApiModelProperty(value = "违建事件数量")
        private Integer illegalBuilding;
        @ApiModelProperty(value = "案件办理数")
        private Integer caseCount;
        @ApiModelProperty(value = "户外广告违法")
        private Integer advertising;
        @ApiModelProperty(value = "占道经营数")
        private Integer roadsideStallBusiness;
        @ApiModelProperty(value = "渣土运输违章")
        private Integer slag;
    }
}