| | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | 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); |
| | | } |
| | | } |