public Dictionary <string, object> CompareData(string orgcode, string systime) { Dictionary <string, object> r = new Dictionary <string, object>(); try { DataTable dt = db.CompareData(orgcode, systime); if (dt.Rows.Count > 0) { r["message"] = "成功"; r["code"] = 2000; r["items"] = dt; } else { r["message"] = "成功"; r["code"] = 2000; r["total"] = 0; } } catch (Exception e) { r["message"] = e.Message; r["code"] = -1; } return(r); }