| | |
| | | /// <returns></returns> |
| | | [Route("GetPumpHistoryData")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetPumpHistoryData(string startday, string endday) |
| | | public async Task<IStation.Dto.ApiResult> GetPumpHistoryData(string startday, string endday, string resolution) |
| | | { |
| | | if (startday == null || endday == null) |
| | | { |
| | |
| | | { |
| | | return new IStation.Dto.ApiResult() { Code = ApiResultCode.Error, Message = "day 格式不正确" }; |
| | | } |
| | | var TotalWater = await ZyConnectHelper.GetTotalWaterByTimeRange_Out(Start, d, "1h"); //取水量 |
| | | var TotalWater = await ZyConnectHelper.GetTotalWaterByTimeRange_Out(Start, d, resolution); //取水量 |
| | | /* var one = TotalWater |
| | | .SelectMany(otdl => otdl.MonitorRecords); |
| | | var two = one.GroupBy(totalDay => totalDay.Time); |