liyuanyuan лет назад: 3
Родитель
Сommit
0f56b45cfc

+ 12 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -346,15 +346,25 @@ namespace CallCenterApi.Interface.Controllers.tel
346 346
             {
347 347
                 sql += " and CallType='" + calltype + "'";
348 348
             }
349
+            //if (starttime.Trim() != "")
350
+            //{
351
+            //    sql += " and datediff(day,BeginTime,'" + starttime + "')<=0 ";
352
+            //}
353
+            //if (endtime.Trim() != "")
354
+            //{
355
+            //    sql += " and datediff(day,BeginTime,'" + endtime + "')>=0 ";
356
+            //}
357
+
349 358
             if (starttime.Trim() != "")
350 359
             {
351
-                sql += " and datediff(day,BeginTime,'" + starttime + "')<=0 ";
360
+                sql += " and  BeginTime>'" + starttime + "' ";
352 361
             }
353 362
             if (endtime.Trim() != "")
354 363
             {
355
-                sql += " and datediff(day,BeginTime,'" + endtime + "')>=0 ";
364
+                sql += " and  BeginTime<= '" + endtime + "'  ";
356 365
             }
357 366
 
367
+
358 368
             dt = new BLL.T_Call_CallRecords().GetListExpt(sql).Tables[0];
359 369
 
360 370
             NPOIHelper npoi = new NPOIHelper();