public static R_PhistoryInfo GetLastHistoryRP(string yid) { R_PhistoryInfo r_p = new R_PhistoryInfo(); R_PhistoryGetLastByYidRequest request = new R_PhistoryGetLastByYidRequest(); request.yid = yid; r_p = r_PhistoryService.GetPersonLastR_Phistory(request).Data; return(r_p); }
/// <summary> /// 获取人员最后一条轨迹记录 /// </summary> /// <param name="request"></param> /// <returns></returns> public BasicResponse <R_PhistoryInfo> GetPersonLastR_Phistory(R_PhistoryGetLastByYidRequest request) { var result = _Repository.QueryTable("global_R_PhistoryService_QueryR_PhistoryFromDB", DateTime.Now.ToString("yyyyMMdd"), request.yid); var resultToList = ObjectConverter.Copy <R_PhistoryInfo>(result); R_PhistoryInfo phistoryInfo = null; if (resultToList.Count > 0) { phistoryInfo = ObjectConverter.Copy <R_PhistoryInfo>(result)[0]; } var phistoryresponse = new BasicResponse <R_PhistoryInfo>(); phistoryresponse.Data = phistoryInfo; return(phistoryresponse); }