/// <summary> /// 日最大值 /// </summary> /// <param name="pointId">测点号</param> /// <returns>日最大值</returns> public BasicResponse <FactorValueInfo> DayMaxValue(FactorValueGetRequest factorValueGetRequest) { var hourResponse = hourService.GetDayMaxValueByPointId( new Jc_HourGetRequest() { PointId = factorValueGetRequest.PointId } ); var factorValueResponse = new BasicResponse <FactorValueInfo>(); FactorValueInfo factorValueInfo = new FactorValueInfo(); if (hourResponse.Code == 100) { if (hourResponse.Data != null) { decimal tryParseValue = 0.00M; decimal.TryParse(hourResponse.Data.CountDataValue, out tryParseValue); if (tryParseValue > 0) { factorValueInfo.Value = hourResponse.Data.CountDataValue; } } } factorValueResponse.Data = factorValueInfo; factorValueResponse.Code = hourResponse.Code; factorValueResponse.Message = hourResponse.Message; return(factorValueResponse); }
BasicResponse <Jc_HourInfo> IJc_HourService.GetDayMaxValueByPointId(Jc_HourGetRequest jc_Hourrequest) { return(hourService.GetDayMaxValueByPointId(jc_Hourrequest)); }