baizonghao
2023-03-14 bd8147d7890bf60d88e4007c1af726ba5f364cf5
ycl-platform/src/main/java/com/ycl/controller/trend/TrendAnalysisController.java
@@ -27,9 +27,15 @@
    }
    @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));
    }
}