1550076451 1 rok temu
rodzic
commit
777b439523

BIN
codegit/.vs/ShuangHuiCallCenter/v15/Server/sqlite3/storage.ide-shm


BIN
codegit/.vs/ShuangHuiCallCenter/v15/Server/sqlite3/storage.ide-wal


BIN
codegit/CallCenterApi/CallCenterApi.DB/obj/Release/CallCenterApi.DB.csprojAssemblyReference.cache


+ 8 - 8
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -270,19 +270,19 @@ namespace CallCenterApi.Interface.Controllers.workorder
270 270
                         sql += $" and (F_DealTimely= '1类问题' or F_DealTimely= 'Ⅰ级' )";
271 271
                 }
272 272
                 if (!string.IsNullOrEmpty(starttime))
273
-                    sql += " and datediff(day,F_CreateTime,'" + starttime + "')<=0 ";
273
+                    sql += " and datediff(day,c.F_CreateTime,'" + starttime + "')<=0 ";
274 274
                 if (!string.IsNullOrEmpty(endtime))
275
-                    sql += " and datediff(day,F_CreateTime,'" + endtime + "')>=0   ";
275
+                    sql += " and datediff(day,c.F_CreateTime,'" + endtime + "')>=0   ";
276 276
                  if (istime == 0)
277 277
                 {
278
-                    sql += " and datediff(day,F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')<=0 ";
279
-                    sql += " and datediff(day,F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')>=0   ";
278
+                    sql += " and datediff(day,c.F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')<=0 ";
279
+                    sql += " and datediff(day,c.F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')>=0   ";
280 280
                 }
281 281
                  if (istime > 0)
282 282
                 {
283
-                    sql += " and datediff(day,F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM")
283
+                    sql += " and datediff(day,c.F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM")
284 284
                       + "-01" + "')<=0 ";
285
-                    sql += " and datediff(day,F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')>=0   ";
285
+                    sql += " and datediff(day,c.F_CreateTime,'" + DateTime.Now.ToString("yyyy-MM-dd") + "')>=0   ";
286 286
                 }
287 287
                 if (IsReduction>-1)
288 288
                     sql += " and F_IsReduction ="+ IsReduction;
@@ -291,13 +291,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
291 291
                     
292 292
                     duplica = true;
293 293
                     sql += $" and F_Type=" + 3;
294
-                    where += " and datediff(day,F_CreateTime,'" + duplicatetime + "')<=0 ";
294
+                    where += " and datediff(day,c.F_CreateTime,'" + duplicatetime + "')<=0 ";
295 295
                 }
296 296
                 if (!string.IsNullOrEmpty(endduplicatetime))
297 297
                 {
298 298
                     duplica = true;
299 299
                     sql += $" and F_Type=" + 3;
300
-                    where += " and datediff(day,F_CreateTime,'" + endduplicatetime + "')>=0   ";
300
+                    where += " and datediff(day,c.F_CreateTime,'" + endduplicatetime + "')>=0   ";
301 301
                 }
302 302
                     if (!string.IsNullOrEmpty(keywords))
303 303
                     {