Explorar el Código

英文字符错误替换

clq1010 %!s(int64=8) %!d(string=hace) años
padre
commit
ed04cff3d6

+ 7 - 7
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords.cs

414
         {
414
         {
415
 
415
 
416
             StringBuilder strSql = new StringBuilder();
416
             StringBuilder strSql = new StringBuilder();
417
-            strSql.Append("select  top 1 * from T_Call_CallRecords  WHTH(NOLOCK)");
417
+            strSql.Append("select  top 1 * from T_Call_CallRecords  WITH(NOLOCK)");
418
             strSql.Append(" where CallRecordsId=@CallRecordsId");
418
             strSql.Append(" where CallRecordsId=@CallRecordsId");
419
             SqlParameter[] parameters = {
419
             SqlParameter[] parameters = {
420
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
420
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
672
         {
672
         {
673
             StringBuilder strSql = new StringBuilder();
673
             StringBuilder strSql = new StringBuilder();
674
             strSql.Append("select * ");
674
             strSql.Append("select * ");
675
-            strSql.Append(" FROM T_Call_CallRecords  WHTH(NOLOCK)");
675
+            strSql.Append(" FROM T_Call_CallRecords  WITH(NOLOCK)");
676
             if (strWhere.Trim() != "")
676
             if (strWhere.Trim() != "")
677
             {
677
             {
678
                 strSql.Append(" where " + strWhere);
678
                 strSql.Append(" where " + strWhere);
692
                 strSql.Append(" top " + Top.ToString());
692
                 strSql.Append(" top " + Top.ToString());
693
             }
693
             }
694
             strSql.Append(" * ");
694
             strSql.Append(" * ");
695
-            strSql.Append(" FROM T_Call_CallRecords  WHTH(NOLOCK)");
695
+            strSql.Append(" FROM T_Call_CallRecords  WITH(NOLOCK)");
696
             if (strWhere.Trim() != "")
696
             if (strWhere.Trim() != "")
697
             {
697
             {
698
                 strSql.Append(" where " + strWhere);
698
                 strSql.Append(" where " + strWhere);
707
         public int GetRecordCount(string strWhere)
707
         public int GetRecordCount(string strWhere)
708
         {
708
         {
709
             StringBuilder strSql = new StringBuilder();
709
             StringBuilder strSql = new StringBuilder();
710
-            strSql.Append("select count(1) FROM T_Call_CallRecords  WHTH(NOLOCK)");
710
+            strSql.Append("select count(1) FROM T_Call_CallRecords  WITH(NOLOCK)");
711
             if (strWhere.Trim() != "")
711
             if (strWhere.Trim() != "")
712
             {
712
             {
713
                 strSql.Append(" where " + strWhere);
713
                 strSql.Append(" where " + strWhere);
913
         public Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
913
         public Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
914
         {
914
         {
915
             StringBuilder strSql = new StringBuilder();
915
             StringBuilder strSql = new StringBuilder();
916
-            strSql.Append("select  top 1 * from T_Call_CallRecords  WHTH(NOLOCK)");
916
+            strSql.Append("select  top 1 * from T_Call_CallRecords  WITH(NOLOCK)");
917
             strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
917
             strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
918
             SqlParameter[] parameters = {
918
             SqlParameter[] parameters = {
919
                     new SqlParameter("@CallNumber", SqlDbType.VarChar,100)
919
                     new SqlParameter("@CallNumber", SqlDbType.VarChar,100)
937
         public Model.T_Call_CallRecords GetModelByCallId(string CallId)
937
         public Model.T_Call_CallRecords GetModelByCallId(string CallId)
938
         {
938
         {
939
             StringBuilder strSql = new StringBuilder();
939
             StringBuilder strSql = new StringBuilder();
940
-            strSql.Append("select  top 1 * from T_Call_CallRecords  WHTH(NOLOCK)");
940
+            strSql.Append("select  top 1 * from T_Call_CallRecords  WITH(NOLOCK)");
941
             strSql.Append(" where CallId=@CallId order by BeginTime desc");
941
             strSql.Append(" where CallId=@CallId order by BeginTime desc");
942
             SqlParameter[] parameters = {
942
             SqlParameter[] parameters = {
943
                     new SqlParameter("@CallId", SqlDbType.VarChar,50)
943
                     new SqlParameter("@CallId", SqlDbType.VarChar,50)
958
         public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
958
         public Model.T_Call_CallRecords GetModelByRecordId(string CallId)
959
         {
959
         {
960
             StringBuilder strSql = new StringBuilder();
960
             StringBuilder strSql = new StringBuilder();
961
-            strSql.Append("select  top 1 * from T_Call_CallRecords  WHTH(NOLOCK)");
961
+            strSql.Append("select  top 1 * from T_Call_CallRecords  WITH(NOLOCK)");
962
             strSql.Append(" where CallRecordsId=@CallRecordsId order by BeginTime desc");
962
             strSql.Append(" where CallRecordsId=@CallRecordsId order by BeginTime desc");
963
             SqlParameter[] parameters = {
963
             SqlParameter[] parameters = {
964
                     new SqlParameter("@CallRecordsId", SqlDbType.Int)
964
                     new SqlParameter("@CallRecordsId", SqlDbType.Int)

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_CallRecords_QC.cs

417
         {
417
         {
418
 
418
 
419
             StringBuilder strSql = new StringBuilder();
419
             StringBuilder strSql = new StringBuilder();
420
-            strSql.Append("select  top 1 * from T_Call_CallRecords  WHTH(NOLOCK)");
420
+            strSql.Append("select  top 1 * from T_Call_CallRecords  WITH(NOLOCK)");
421
             strSql.Append(" where CallRecordsId=@CallRecordsId");
421
             strSql.Append(" where CallRecordsId=@CallRecordsId");
422
             SqlParameter[] parameters = {
422
             SqlParameter[] parameters = {
423
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
423
                     new SqlParameter("@CallRecordsId", SqlDbType.Int,4)
642
         {
642
         {
643
             StringBuilder strSql = new StringBuilder();
643
             StringBuilder strSql = new StringBuilder();
644
             strSql.Append("select * ");
644
             strSql.Append("select * ");
645
-            strSql.Append(" FROM T_Call_CallRecords  WHTH(NOLOCK)");
645
+            strSql.Append(" FROM T_Call_CallRecords  WITH(NOLOCK)");
646
             if (strWhere.Trim() != "")
646
             if (strWhere.Trim() != "")
647
             {
647
             {
648
                 strSql.Append(" where " + strWhere);
648
                 strSql.Append(" where " + strWhere);
662
                 strSql.Append(" top " + Top.ToString());
662
                 strSql.Append(" top " + Top.ToString());
663
             }
663
             }
664
             strSql.Append(" * ");
664
             strSql.Append(" * ");
665
-            strSql.Append(" FROM T_Call_CallRecords  WHTH(NOLOCK)");
665
+            strSql.Append(" FROM T_Call_CallRecords  WITH(NOLOCK)");
666
             if (strWhere.Trim() != "")
666
             if (strWhere.Trim() != "")
667
             {
667
             {
668
                 strSql.Append(" where " + strWhere);
668
                 strSql.Append(" where " + strWhere);
677
         public int GetRecordCount(string strWhere)
677
         public int GetRecordCount(string strWhere)
678
         {
678
         {
679
             StringBuilder strSql = new StringBuilder();
679
             StringBuilder strSql = new StringBuilder();
680
-            strSql.Append("select count(1) FROM T_Call_CallRecords  WHTH(NOLOCK)");
680
+            strSql.Append("select count(1) FROM T_Call_CallRecords  WITH(NOLOCK)");
681
             if (strWhere.Trim() != "")
681
             if (strWhere.Trim() != "")
682
             {
682
             {
683
                 strSql.Append(" where " + strWhere);
683
                 strSql.Append(" where " + strWhere);

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs

546
         {
546
         {
547
             StringBuilder strSql = new StringBuilder();
547
             StringBuilder strSql = new StringBuilder();
548
             strSql.Append("select ID,WorkOrderID,Type,TypeClass,Title,Detail,Files,ResponDept,ResponUser,CallID,CustomerID,Customer,CustomerTel,Province,City,County,Address,Source,Answer,State,LastDealUser,LastDealTime,IsReturn,LimitTime,IsReturnBak,ReturnBakTime,IsTimeOut,IsUserSend,IsAdminSend,CreateUser,CreateTime,IsDel,DelUser,DelTime,IsAudit,AuditState,AuditUser,AuditTime,AuditCont,AppointTime,Clcontent ");
548
             strSql.Append("select ID,WorkOrderID,Type,TypeClass,Title,Detail,Files,ResponDept,ResponUser,CallID,CustomerID,Customer,CustomerTel,Province,City,County,Address,Source,Answer,State,LastDealUser,LastDealTime,IsReturn,LimitTime,IsReturnBak,ReturnBakTime,IsTimeOut,IsUserSend,IsAdminSend,CreateUser,CreateTime,IsDel,DelUser,DelTime,IsAudit,AuditState,AuditUser,AuditTime,AuditCont,AppointTime,Clcontent ");
549
-            strSql.Append(" FROM T_Wo_WorkOrder  WHTH(NOLOCK)");
549
+            strSql.Append(" FROM T_Wo_WorkOrder  WITH(NOLOCK)");
550
             if (strWhere.Trim() != "")
550
             if (strWhere.Trim() != "")
551
             {
551
             {
552
                 strSql.Append(" where " + strWhere);
552
                 strSql.Append(" where " + strWhere);

+ 9 - 9
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/InfoController.cs

177
         private object GetHWLSS()
177
         private object GetHWLSS()
178
         {
178
         {
179
             //接通量
179
             //接通量
180
-            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
180
+            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords  WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
181
             //来电量
181
             //来电量
182
-            DataTable dt1 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
182
+            DataTable dt1 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords  WITH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
183
 
183
 
184
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
184
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
185
             var query3 = times.Select(x => {
185
             var query3 = times.Select(x => {
252
         private object GetHWZL()
252
         private object GetHWZL()
253
         {
253
         {
254
             //话务量
254
             //话务量
255
-            DataTable dt = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
255
+            DataTable dt = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords  WITH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
256
 
256
 
257
             var hwcon = dt.Rows[0]["con"].ToString();//话务量
257
             var hwcon = dt.Rows[0]["con"].ToString();//话务量
258
             if (string.IsNullOrEmpty(hwcon))
258
             if (string.IsNullOrEmpty(hwcon))
260
                 hwcon = "0";
260
                 hwcon = "0";
261
             }
261
             }
262
             //来话量
262
             //来话量
263
-            DataTable dt1 = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
263
+            DataTable dt1 = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords  WITH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
264
             var lhcon = dt1.Rows[0]["con"].ToString();//话务量
264
             var lhcon = dt1.Rows[0]["con"].ToString();//话务量
265
             if (string.IsNullOrEmpty(lhcon))
265
             if (string.IsNullOrEmpty(lhcon))
266
             {
266
             {
268
             }
268
             }
269
 
269
 
270
             //接通量,通话时长
270
             //接通量,通话时长
271
-            DataTable dt2 = DbHelperSQL.Query(" select count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords  WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
271
+            DataTable dt2 = DbHelperSQL.Query(" select count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords  WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
272
             var jtcon = dt2.Rows[0]["con"].ToString();//接通量
272
             var jtcon = dt2.Rows[0]["con"].ToString();//接通量
273
             var thtimes = dt2.Rows[0]["tltimes"].ToString();//通话时长
273
             var thtimes = dt2.Rows[0]["tltimes"].ToString();//通话时长
274
             if (string.IsNullOrEmpty(jtcon))
274
             if (string.IsNullOrEmpty(jtcon))
309
         private object GetHWL()
309
         private object GetHWL()
310
         {
310
         {
311
             //话务量
311
             //话务量
312
-            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
312
+            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords  WITH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
313
             
313
             
314
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
314
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
315
             var query3 = times.Select(x =>
315
             var query3 = times.Select(x =>
332
         private object GetJTL()
332
         private object GetJTL()
333
         {
333
         {
334
             //话务量
334
             //话务量
335
-            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
335
+            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords  WITH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
336
             
336
             
337
             //接通量,通话时长
337
             //接通量,通话时长
338
-            DataTable dt2 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords  WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
338
+            DataTable dt2 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords  WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
339
             
339
             
340
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
340
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
341
             var query3 = times.Select(x =>
341
             var query3 = times.Select(x =>
361
         private object GetPjthsc()
361
         private object GetPjthsc()
362
         {
362
         {
363
             //接通量,通话时长
363
             //接通量,通话时长
364
-            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords  WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
364
+            DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords  WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
365
 
365
 
366
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
366
             int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
367
             var query3 = times.Select(x => {
367
             var query3 = times.Select(x => {