| | |
| | | } |
| | | |
| | | @ApiOperation("点位数据查询") |
| | | @PostMapping("/pointInfo") |
| | | public CommonResult<List<TrendVo>> queryPointInfo(@RequestBody String id) { |
| | | JSONObject jsonObject = JSON.parseObject(id); |
| | | return CommonResult.success(trendAnalysisService.queryPointInfo(jsonObject.getString("id"))); |
| | | @GetMapping("/pointInfo") |
| | | public CommonResult<List<TrendVo>> queryPointInfo(@RequestParam(required = false) String longitude, |
| | | @RequestParam(required = false) String latitude) { |
| | | return CommonResult.success(trendAnalysisService.queryPointInfo(longitude,latitude)); |
| | | } |
| | | |
| | | @ApiOperation("首次报警点位数据查询") |
| | | @PostMapping("/firstInfo") |
| | | public CommonResult<List<TrendVo>> queryListByCount(@RequestBody TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { |
| | | return CommonResult.success(trendAnalysisService.queryListByCount(trendAnalysisParam,pageSize,pageNum)); |
| | | } |
| | | } |