瀏覽代碼

修改振铃事件:振铃时不能更新为接通状态(因为呼出时的流程是,坐席呼出,平台接收,返回坐席振铃摘机,平台呼出电话,可视为呼出-呼入-呼出流程,此时坐席摘机不为接通状态),更新录音时更新为接通状态

zhengbingbing 7 年之前
父節點
當前提交
e2f4702189

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

@@ -795,19 +795,20 @@ namespace CallCenterApi.DAL
795 795
         {
796 796
             StringBuilder strSql = new StringBuilder();
797 797
             strSql.Append("update T_Call_CallRecords set ");
798
-            strSql.Append("CallState=@CallState,");
798
+            //strSql.Append("CallState=@CallState,");
799 799
             strSql.Append("RingEndTime=getdate(),");
800 800
             strSql.Append("RingLongTime=datediff(second,RingStartTime,getdate()),");
801
-            strSql.Append("TalkStartTime=getdate(),");
802
-            strSql.Append("DealType=@DealType");
801
+            strSql.Append("TalkStartTime=getdate()");
802
+            //strSql.Append("DealType=@DealType");
803 803
             strSql.Append(" where CallId=@CallId");
804 804
             SqlParameter[] parameters = {
805 805
                     new SqlParameter("@CallId", SqlDbType.VarChar,50),
806
-                    new SqlParameter("@CallState", SqlDbType.Int,4),
807
-                      new SqlParameter("@DealType", SqlDbType.Int,4)};
806
+                //new SqlParameter("@CallState", SqlDbType.Int,4),
807
+                //  new SqlParameter("@DealType", SqlDbType.Int,4)
808
+            };
808 809
             parameters[0].Value = model.CallId;
809
-            parameters[1].Value = model.CallState;
810
-            parameters[2].Value = model.DealType;
810
+            //parameters[1].Value = model.CallState;
811
+            //parameters[2].Value = model.DealType;
811 812
             
812 813
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
813 814
             if (rows > 0)

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

@@ -485,8 +485,8 @@ namespace CallCenterApi.Interface.Controllers.tel
485 485
 
486 486
                 Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
487 487
                 model.CallId = RequestString.GetQueryString("callid");
488
-                model.CallState = 1;
489
-                model.DealType = 6;
488
+                //model.CallState = 1;
489
+                //model.DealType = 6;
490 490
                 bool bl = new BLL.T_Call_CallRecords().UpdateCallInAnswerTelRecord(model);
491 491
                 if (bl)
492 492
                 {