|
@@ -2,6 +2,8 @@ package com.huaxu.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.huaxu.dto.DevicePressReportAttributeDto;
|
|
|
+import com.huaxu.dto.DeviceReportDto;
|
|
|
import com.huaxu.dto.ReportDto;
|
|
|
import com.huaxu.entity.MonitorInfoEntity;
|
|
|
import com.huaxu.entity.SceneEntity;
|
|
@@ -49,4 +51,23 @@ public class DayMonthYearReportController {
|
|
|
Pagination<ReportDto> pages = new Pagination<>(iPage);
|
|
|
return new AjaxMessage<>(ResultStatus.OK,pages);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "按设备统计压力及流量年月日统计报表")
|
|
|
+ @RequestMapping(value = "/getDevicePressReportByDeviceIds", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public AjaxMessage<Pagination<DevicePressReportAttributeDto>> getDevicePressReportByDeviceIds(
|
|
|
+ @RequestParam Integer pageNum,
|
|
|
+ @RequestParam Integer pageSize,
|
|
|
+ @ApiParam(value = "设备IDS", required = true) @RequestParam(required = true) Long[] ids,
|
|
|
+ @ApiParam(value = "查询年", required = false) @RequestParam(required = false) Integer year ,
|
|
|
+ @ApiParam(value = "查询月", required = false) @RequestParam(required = false) Integer month ,
|
|
|
+ @ApiParam(value = "查询日", required = false) @RequestParam(required = false) Integer day ,
|
|
|
+ @ApiParam(value = "类型(1压力 2流量)", required = false) @RequestParam(required = false) Integer type ,
|
|
|
+ @ApiParam(value = "报表类型(0日 1月 2年)", required = true) @RequestParam(required = true) Integer reportType
|
|
|
+ ) {
|
|
|
+ IPage<DevicePressReportAttributeDto> iPage = new Page<>(pageNum, pageSize);
|
|
|
+ iPage = reportService.getDevicePressReportByDeviceIds(iPage,ids,year,month,day,reportType,type);
|
|
|
+ Pagination<DevicePressReportAttributeDto> pages = new Pagination<>(iPage);
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK,pages);
|
|
|
+ }
|
|
|
}
|