zhengbingbing 7 lat temu
rodzic
commit
7b753488e0

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

@@ -890,7 +890,7 @@ namespace CallCenterApi.DAL
890 890
         {
891 891
             StringBuilder strSql = new StringBuilder();
892 892
             strSql.Append("select  top 1 * from T_Call_CallRecords ");
893
-            strSql.Append(" where CallNumber=@CallNumber and DATEDIFF(MINUTE,BeginTime,GETDATE())<30 order by BeginTime desc");
893
+            strSql.Append(" where CallNumber=@CallNumber and DATEDIFF(MINUTE,BeginTime,GETDATE())>=3 order by BeginTime desc");
894 894
             //华为设备获取callid如此
895 895
             //strSql.Append(" where CallNumber=@CallNumber order by BeginTime desc");
896 896
             SqlParameter[] parameters = {

+ 36 - 36
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -149,39 +149,39 @@ namespace CallCenterApi.Interface.Controllers.tel
149 149
                         Model.T_Call_CallRecords model1 = new BLL.T_Call_CallRecords().GetModelByTelphone(tel);
150 150
                         if (model1 != null)
151 151
                         {
152
-                            res = Success("加载成功", model1);
153
-                        }
154
-                        try
155
-                        {
156
-                            Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
157
-                            model.CallId = DateTime.Now.ToString("yyyyMMddHHmmssms");
158
-                            model.CallNumber = tel;
159
-
160
-                            #region 设置当前登录坐席
161
-                            model.UserId = ua.F_UserId;
162
-                            model.UserCode = ua.F_UserCode;
163
-                            model.UserName = ua.F_UserName;
164
-                            model.ExtNumber = CurrentUser.UserData.F_ExtensionNumber;
165
-                            #endregion
166
-                            #region 设置状态
167
-                            model.CallType = 0;
168
-                            model.CallState = 1;
169
-                            model.DealType = 6;
170
-                            model.IsDeal = 1;
171
-                            #endregion
172
-                            model.BeginTime = DateTime.Now;
173
-                            int i = new BLL.T_Call_CallRecords().Add(model);
174
-                            model.CallRecordsId = i;
175
-                            res = Success("加载成功", model);
176
-                        }
177
-                        catch
178
-                        {
179
-                            res = Error("加载失败");
152
+                            return Success("加载成功", model1);
180 153
                         }
154
+                        //try
155
+                        //{
156
+                        //    Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
157
+                        //    model.CallId = DateTime.Now.ToString("yyyyMMddHHmmssms");
158
+                        //    model.CallNumber = tel;
159
+
160
+                        //    #region 设置当前登录坐席
161
+                        //    model.UserId = ua.F_UserId;
162
+                        //    model.UserCode = ua.F_UserCode;
163
+                        //    model.UserName = ua.F_UserName;
164
+                        //    model.ExtNumber = CurrentUser.UserData.F_ExtensionNumber;
165
+                        //    #endregion
166
+                        //    #region 设置状态
167
+                        //    model.CallType = 0;
168
+                        //    model.CallState = 1;
169
+                        //    model.DealType = 6;
170
+                        //    model.IsDeal = 1;
171
+                        //    #endregion
172
+                        //    model.BeginTime = DateTime.Now;
173
+                        //    int i = new BLL.T_Call_CallRecords().Add(model);
174
+                        //    model.CallRecordsId = i;
175
+                        //    res = Success("加载成功", model);
176
+                        //}
177
+                        //catch
178
+                        //{
179
+                        //    res = Error("加载失败");
180
+                        //}
181 181
                     }
182 182
                 }
183 183
             }
184
-            return res;
184
+            return Error("加载失败");
185 185
         }
186 186
 
187 187
         /// <summary>
@@ -448,7 +448,7 @@ namespace CallCenterApi.Interface.Controllers.tel
448 448
                     if (ua != null)
449 449
                     {
450 450
                         Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
451
-                        model.CallId = RequestString.GetFormString("callid");
451
+                        model.CallId = RequestString.GetQueryString("callid");
452 452
                         model.UserId = ua.F_UserId;
453 453
                         model.UserCode = ua.F_UserCode;
454 454
                         model.UserName = ua.F_UserName;
@@ -484,7 +484,7 @@ namespace CallCenterApi.Interface.Controllers.tel
484 484
             {
485 485
 
486 486
                 Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
487
-                model.CallId = RequestString.GetFormString("callid");
487
+                model.CallId = RequestString.GetQueryString("callid");
488 488
                 model.CallState = 1;
489 489
                 model.DealType = 6;
490 490
                 bool bl = new BLL.T_Call_CallRecords().UpdateCallInAnswerTelRecord(model);
@@ -519,7 +519,7 @@ namespace CallCenterApi.Interface.Controllers.tel
519 519
             if (Request.IsAuthenticated)
520 520
             {
521 521
 
522
-                string strid = RequestString.GetFormString("callid");
522
+                string strid = RequestString.GetQueryString("callid");
523 523
                 bool bl = new BLL.T_Call_CallRecords().UpdateCallInHookTelRecord(strid);
524 524
                 if (bl)
525 525
                 {
@@ -545,10 +545,10 @@ namespace CallCenterApi.Interface.Controllers.tel
545 545
             {
546 546
 
547 547
                 Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
548
-                model.CallId = RequestString.GetFormString("callid");
548
+                model.CallId = RequestString.GetQueryString("callid");
549 549
                 model.CallState = 1;
550 550
                 model.DealType = 6;
551
-                model.FilePath = RequestString.GetFormString("path");
551
+                model.FilePath = RequestString.GetQueryString("path");
552 552
                 bool bl = new BLL.T_Call_CallRecords().UpdateCallInPathTelRecord(model);
553 553
                 if (bl)
554 554
                 {
@@ -559,11 +559,11 @@ namespace CallCenterApi.Interface.Controllers.tel
559 559
                         new BLL.T_Call_TaskTelNum().UpdateYJ(Convert.ToInt32(vmodel.OperateObject.ToString()), 1);
560 560
                     }
561 561
 
562
-                    res = Success("更新挂机状态成功");
562
+                    res = Success("更新录音状态成功");
563 563
                 }
564 564
                 else
565 565
                 {
566
-                    res = Success("更新挂机状态失败");
566
+                    res = Success("更新录音状态失败");
567 567
                 }
568 568
 
569 569
             }