| | |
| | | @GetMapping("/lot") |
| | | public CommonResult<List<StatisticsEventsVO.LotVO>> lot(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | List<StatisticsEventsVO.LotVO> lotVOS = new ArrayList<>(); |
| | | StatisticsEventsVO.LotVO a = null; |
| | | for (int i = 0; i < 4; i++) { |
| | | a = new StatisticsEventsVO.LotVO(); |
| | | a.setName("团结屯"); |
| | | a.setType("摄像头"); |
| | | a.setCount(10); |
| | | a.setRatio(new BigDecimal("-0.3").setScale(2, RoundingMode.HALF_UP)); |
| | | lotVOS.add(a); |
| | | } |
| | | List<StatisticsEventsVO.LotVO> lotVOS = iApiDataService.listLot(params.getStreetId(), params.getBeginTime(), params.getEndTime()); |
| | | |
| | | return CommonResult.success(lotVOS); |
| | | } |
| | | |
| | |
| | | @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)); |
| | | List<StatisticsEventsVO.ArithmeticVO> ls = iApiDataService.arithmeticEvent(params.getStreetId(), params.getBeginTime(), params.getEndTime()); |
| | | |
| | | return CommonResult.success(ls); |
| | | } |
| | | |