Example #1
0
        public BasicResponse <List <GetSubstationHistoryRealDataByFzhTimeResponse> > GetSubstationHistoryRealDataByFzhTime(
            GetSubstationHistoryRealDataByFzhTimeRequest request)
        {
            var dt = _Repository.QueryTable("global_StaionHistoryDataService_GetSubstationHistoryRealDataByFzhTime",
                                            request.Fzh, request.Time);
            var gsh = ObjectConverter.Copy <GetSubstationHistoryRealDataByFzhTimeResponse>(dt);

            return(new BasicResponse <List <GetSubstationHistoryRealDataByFzhTimeResponse> >()
            {
                Data = gsh
            });
        }
Example #2
0
        /// <summary>
        /// 根据分站号和时间获取分站的5分钟历史数据
        /// </summary>
        /// <param name="fzh"></param>
        /// <param name="time"></param>
        /// <returns></returns>
        public static List <GetSubstationHistoryRealDataByFzhTimeResponse> GetSubstationHistoryRealDataByFzhTime(string fzh, DateTime time)
        {
            var req = new GetSubstationHistoryRealDataByFzhTimeRequest
            {
                Fzh  = fzh,
                Time = time.ToString()
            };
            var res = StaionHistoryDataService.GetSubstationHistoryRealDataByFzhTime(req);

            if (!res.IsSuccess)
            {
                throw new Exception(res.Message);
            }
            return(res.Data);
        }
 public BasicResponse <List <GetSubstationHistoryRealDataByFzhTimeResponse> > GetSubstationHistoryRealDataByFzhTime(GetSubstationHistoryRealDataByFzhTimeRequest request)
 {
     return(_StaionHistoryDataService.GetSubstationHistoryRealDataByFzhTime(request));
 }