Selaa lähdekoodia

关键词统计

duhongyu 4 vuotta sitten
vanhempi
commit
8e52270c1f

+ 3 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/DataAnalysisController.cs

@@ -153,11 +153,9 @@ namespace CallCenterApi.Interface.Controllers.report
153 153
             {
154 154
                 edate = dttime.ToString("yyyy-MM-dd") + " 23:59:59";
155 155
             }
156
-            Dictionary<string, string> paras = new Dictionary<string, string>();
157
-            paras.Add("@sdate", sdate);
158
-            paras.Add("@edate", edate);
159
-            var obj = DbHelperSQL.RunProcedure("P_KeyReport_1", paras, "KeyReport");
160
-            return Success("成功", obj);
156
+            var sql = "select F_Key  ,COUNT(1) as keycount ,dbo.GetDictionaryName(F_Key) as keyname  from T_Bus_WorkOrder where F_CreateTime between '"+ sdate + "' and '"+ edate + "' and F_IsDelete = 0   group by F_Key order by keycount desc";
157
+            var db = DbHelperSQL.Query(sql).Tables[0];
158
+            return Success("成功", db);
161 159
         }
162 160
         //public ActionResult GetKeyReport1(string date, int isdc = 0)
163 161
         //{