| | |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.dto.trend.TrendAnalysisParam; |
| | | import com.ycl.service.trend.TrendAnalysisService; |
| | | import com.ycl.vo.TrendAnalysisVo; |
| | | import com.ycl.vo.TrendVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @ApiOperation("数据查询") |
| | | @PostMapping("/info") |
| | | public CommonResult<List<TrendVo>> list(@RequestBody TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { |
| | | return CommonResult.success(trendAnalysisService.list(trendAnalysisParam,pageSize,pageNum)); |
| | | return CommonResult.success(trendAnalysisService.list(trendAnalysisParam, pageSize, pageNum)); |
| | | } |
| | | |
| | | @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("点位数据查询") |
| | | @GetMapping("/queryPointInfoByTime") |
| | | public CommonResult<TrendAnalysisVo> queryPointInfoByTime(@RequestParam Long pointId, |
| | | @RequestParam(required = false) String startTime, |
| | | @RequestParam(required = false) String endTime) { |
| | | return CommonResult.success(trendAnalysisService.queryPointInfoByTime(pointId, startTime, endTime)); |
| | | } |
| | | |
| | | @ApiOperation("首次报警点位数据查询") |
| | | @PostMapping("/firstInfo") |
| | | public CommonResult<List<TrendVo>> queryListByCount(@RequestBody TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { |
| | | return CommonResult.success(trendAnalysisService.queryListByCount(trendAnalysisParam,pageSize,pageNum)); |
| | | return CommonResult.success(trendAnalysisService.queryListByCount(trendAnalysisParam, pageSize, pageNum)); |
| | | } |
| | | } |