public WebApiResult <string> GetStatusList(LogSelectRequest Request) { System.Data.DataTable dt = AccessHelper.ExecuteDataSet(AccessHelper.conn, "select * from ThreadLog where [TStatus]=@TStatus", new OleDbParameter("@TStatus", Request.status)).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(LogSelectRequest request) { LogService service = new LogService(); return(service.GetStatusList(request)); }