| | |
| | | |
| | | // ==================== 数据采集 ==================== |
| | | |
| | | @ApiOperation("监测历史数据(实时监测趋势曲线)") |
| | | @GetMapping("/monitorDataHistory") |
| | | public AjaxResult dataHistory(@RequestParam Long deviceId, |
| | | @RequestParam(required = false) String metricCode, |
| | | @RequestParam(required = false) String startTime, |
| | | @RequestParam(required = false) String endTime) { |
| | | return AjaxResult.success(monitorService.dataHistory(deviceId, metricCode, startTime, endTime)); |
| | | } |
| | | |
| | | @ApiOperation("采集数据上报(自动采集/人工补录)") |
| | | @PostMapping("/monitorDataReport") |
| | | public AjaxResult dataReport(@RequestParam Long deviceId, |