| | |
| | | /// <returns></returns> |
| | | [Route("GetByOneDay")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetByOneDay(string startday) |
| | | public IStation.Dto.ApiResult GetByOneDay(string startday) |
| | | { |
| | | List<RealScadaData> PumpState = new List<RealScadaData>(); |
| | | List<RealScadaData> TotalWater = new List<RealScadaData>(); |
| | |
| | | /// <returns></returns> |
| | | [Route("GetByHistoryOneDay")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetByHistoryOneDay(string day) |
| | | public IStation.Dto.ApiResult GetByHistoryOneDay(string day) |
| | | { |
| | | if (day == null) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | [Route("GetOneDayData")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetOneDayPumpWaterData(string day) |
| | | public IStation.Dto.ApiResult GetOneDayPumpWaterData(string day) |
| | | { |
| | | if (day == null) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | [Route("GetPumpOutDayWater")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetPumpOutWater(string startday,string endday,int sign) |
| | | public IStation.Dto.ApiResult GetPumpOutWater(string startday,string endday,int sign) |
| | | { |
| | | if (startday == null||endday==null) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | [Route("GetPumpOutMonthWater")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetPumpOutMonthWater() |
| | | public IStation.Dto.ApiResult GetPumpOutMonthWater() |
| | | { |
| | | var WaterParas = Common.PumpRunParasHelper.ReadPumpMonthOutWater(); |
| | | return new IStation.Dto.ApiResult<List<Model.PumpOutWater>>(WaterParas) { Code = ApiResultCode.Success, Message = "Success" }; |
| | |
| | | /// <returns></returns> |
| | | [Route("GetPumpTotalDayOutWater")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetPumpTotalDayOutWater(string startday, string endday) |
| | | public IStation.Dto.ApiResult GetPumpTotalDayOutWater(string startday, string endday) |
| | | { |
| | | if (startday == null || endday == null) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | [Route("GetPumpTotalDayAccOutWater")] |
| | | [HttpGet] |
| | | public async Task<IStation.Dto.ApiResult> GetPumpTotalDayAccOutWater(string startday, string endday) |
| | | public IStation.Dto.ApiResult GetPumpTotalDayAccOutWater(string startday, string endday) |
| | | { |
| | | if (startday == null || endday == null) |
| | | { |