瀏覽代碼

锁死问题修改

lihai 6 年之前
父節點
當前提交
546fda26bd

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IndexController.cs

@@ -210,7 +210,7 @@ namespace CallCenterApi.Interface.Controllers
210 210
                     ////未接来电    
211 211
                     //int daynocon = bll.GetRecordCount("CallType='0' and CONVERT(varchar(100),BeginTime, 23)='" + strDate + "' ");
212 212
 
213
-                    DataTable dtConnect = DbHelperSQL.Query("select CONVERT(varchar(10),BeginTime, 23) AS yearmonthdays,CONVERT(char(7),BeginTime,20) AS yearmonths,CallType,BeginTime,TalkLongTime FROM T_Call_CallRecords WITH(NOLOCK) where 1 = 1 '" + uwhere + "'").Tables[0];
213
+                    DataTable dtConnect = DbHelperSQL.Query("select CONVERT(varchar(10),BeginTime, 23) AS yearmonthdays,CONVERT(char(7),BeginTime,20) AS yearmonths,CallType,BeginTime,TalkLongTime FROM T_Call_CallRecords WITH(NOLOCK) where " + uwhere + "").Tables[0];
214 214
 
215 215
                     // 今日来电
216 216
                     var dayinlist = dtConnect.Select("CallType='0' and yearmonthdays = '" + strDate + "'").Count();
@@ -354,17 +354,17 @@ namespace CallCenterApi.Interface.Controllers
354 354
 
355 355
                     string[] cols = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24" };
356 356
 
357
-                    string uwhere = " 1=1 and ISNULL(groupcode,'') != '' ";
357
+                    string uwhere = " 1=1 and ISNULL(groupcode,'')!= '' ";
358 358
                     if (roleid != 17)
359 359
                     {
360 360
                         uwhere += " and UserCode='" + usercode + "' ";
361 361
                     }
362 362
 
363
-                    DataTable dtConnect = DbHelperSQL.Query("select CONVERT(varchar(13),BeginTime, 120) AS yearmonths,CallState,BeginTime FROM T_Call_CallRecords WITH(NOLOCK) where 1 = 1  and CONVERT(varchar(11),BeginTime, 120) = '" + strDate + "'").Tables[0];
364
-
365 363
                     if (!string.IsNullOrEmpty(strDate))
366 364
                         uwhere += " and CONVERT(varchar(11),BeginTime, 120) = '" + strDate + "' ";
367 365
 
366
+                    DataTable dtConnect = DbHelperSQL.Query("select CONVERT(varchar(13),BeginTime, 120) AS yearmonths,CallState,BeginTime FROM T_Call_CallRecords WITH(NOLOCK) where " + uwhere + "").Tables[0];
367
+
368 368
                     BLL.T_Call_CallRecords bll = new BLL.T_Call_CallRecords();
369 369
                     int[] total = new int[24];
370 370
                     int[] count = new int[24];