public WebApiResult <string> GetList(LogReadRequest Request) { System.Data.DataTable dt; if (Request.GUID == "ALL") { dt = AccessHelper.ExecuteDataSet(AccessHelper.conn, "select * from Log order by CompleteTime").Tables[0]; } else { dt = AccessHelper.ExecuteDataSet(AccessHelper.conn, "select * from Log where [GUID]=@GUID", new OleDbParameter("@GUID", Request.GUID)).Tables[0]; } return(new WebApiResult <string>() { success = 1, msg = "", results = JsonHelper.ToJson(dt) }); }
/// <summary> /// 日志详情 /// </summary> /// <param name="request"></param> /// <returns></returns> public WebApiResult <string> Any(LogReadRequest request) { LogService service = new LogService(); return(service.GetList(request)); }