增加用水数据接口
This commit is contained in:
@ -97,6 +97,26 @@ public class DeviceDetailController extends BaseController {
|
||||
return ajaxResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用水数据
|
||||
* @param queryLogVo 传参
|
||||
* @return com.fastbee.common.core.domain.AjaxResult
|
||||
*/
|
||||
@ApiOperation("查询用水数据")
|
||||
@GetMapping("/yongshuiChart")
|
||||
public AjaxResult yongshuiChart(QueryLogVo queryLogVo)
|
||||
{
|
||||
if (null == queryLogVo.getDeviceId() || queryLogVo.getDeviceId() == 0L) {
|
||||
return AjaxResult.error("请选择设备");
|
||||
}
|
||||
//设备历史echart数据
|
||||
List<Object> list = deviceDetailService.yongshuiChart(queryLogVo);
|
||||
AjaxResult ajaxResult = AjaxResult.success();
|
||||
ajaxResult.put("data", list);
|
||||
ajaxResult.put("realData", deviceDetailService.yongshuiRealData(queryLogVo));
|
||||
return ajaxResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询巡检记录
|
||||
|
Reference in New Issue
Block a user