From 36a6a9cda6143d0d2494cd2da523fd99ec70834c Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 07 十一月 2022 13:40:44 +0800 Subject: [PATCH] 驾驶舱接口修改 --- document/驾驶舱数据接口文档(ai物联和综合决策).docx | 0 ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java | 5 ++ ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java | 38 +++++++++++++++++++ ycl-platform/src/main/java/com/ycl/vo/cockpit/statisticsEvents/StatisticsEventsVO.java | 52 ++++++++++++++++++++++++++ 4 files changed, 95 insertions(+), 0 deletions(-) diff --git "a/document/\351\251\276\351\251\266\350\210\261\346\225\260\346\215\256\346\216\245\345\217\243\346\226\207\346\241\243\357\274\210ai\347\211\251\350\201\224\345\222\214\347\273\274\345\220\210\345\206\263\347\255\226\357\274\211.docx" "b/document/\351\251\276\351\251\266\350\210\261\346\225\260\346\215\256\346\216\245\345\217\243\346\226\207\346\241\243\357\274\210ai\347\211\251\350\201\224\345\222\214\347\273\274\345\220\210\345\206\263\347\255\226\357\274\211.docx" index 2cc5275..e076ec0 100644 --- "a/document/\351\251\276\351\251\266\350\210\261\346\225\260\346\215\256\346\216\245\345\217\243\346\226\207\346\241\243\357\274\210ai\347\211\251\350\201\224\345\222\214\347\273\274\345\220\210\345\206\263\347\255\226\357\274\211.docx" +++ "b/document/\351\251\276\351\251\266\350\210\261\346\225\260\346\215\256\346\216\245\345\217\243\346\226\207\346\241\243\357\274\210ai\347\211\251\350\201\224\345\222\214\347\273\274\345\220\210\345\206\263\347\255\226\357\274\211.docx" Binary files differ diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java index 4a83fe3..2d2ac7a 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java +++ b/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); + } } diff --git a/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java b/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java index 17ed8f9..314d9b4 100644 --- a/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java +++ b/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; } + + } diff --git a/ycl-platform/src/main/java/com/ycl/vo/cockpit/statisticsEvents/StatisticsEventsVO.java b/ycl-platform/src/main/java/com/ycl/vo/cockpit/statisticsEvents/StatisticsEventsVO.java index 0d06c47..eb115dc 100644 --- a/ycl-platform/src/main/java/com/ycl/vo/cockpit/statisticsEvents/StatisticsEventsVO.java +++ b/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 = "娓e湡杩愯緭杩濈珷") + private Integer slag; + + } } -- Gitblit v1.8.0