添加流量计瞬时流量和累计流量的图表接口

This commit is contained in:
2025-01-02 14:34:03 +08:00
parent 17dadbf393
commit 910256b336
4 changed files with 110 additions and 3 deletions

View File

@ -3,7 +3,9 @@ package com.fastbee.data.controller.userRecharge;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fastbee.iot.domain.dto.NgFlowDeviceDataChartsDto;
import com.fastbee.iot.domain.dto.NgFlowDeviceDataDto;
import com.fastbee.rechargecard.domain.dto.NgWaterPumpUsageRecordsChartsDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@ -36,6 +38,17 @@ public class NgFlowDeviceDataController extends BaseController
@Autowired
private INgFlowDeviceDataService ngFlowDeviceDataService;
/**
* 流量计瞬时流量累计流量的图表
*/
// @PreAuthorize("@ss.hasPermi('rechargecard:records:list')")
@GetMapping("/charts")
@ApiOperation("流量计瞬时流量累计流量的图表")
public AjaxResult FlowCharts(@RequestBody NgFlowDeviceDataChartsDto ngFlowDeviceDataChartsDto)
{
return success(ngFlowDeviceDataService.selectNgFlowDeviceDataFlowCharts(ngFlowDeviceDataChartsDto.getDeviceNumber(),ngFlowDeviceDataChartsDto.getStartTime(),ngFlowDeviceDataChartsDto.getEndTime()));
}
/**
* 查询流量计设备数据列表
*/