zhengbingbing 8 gadi atpakaļ
vecāks
revīzija
ff958b60d4

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

@@ -995,7 +995,7 @@ namespace CallCenterApi.DAL
995 995
             strSql.Append(" select callnumber,");
996 996
             strSql.Append(" case calltype when 1 then '呼出' else '呼入' end calltypes, ");
997 997
             strSql.Append(" case callstate when 1 then '已接通' else '未接通' end callstates, ");
998
-            strSql.Append(" case isdeal when 0 then '未处理' when 1 then '已处理' else '注销' end isdeals, ");
998
+            //strSql.Append(" case isdeal when 0 then '未处理' when 1 then '已处理' else '注销' end isdeals, ");
999 999
             strSql.Append(" usercode, (select F_UserName from T_Sys_UserAccount where F_UserCode= c.UserCode) username, ");
1000 1000
             strSql.Append(" begintime, talkstarttime, talkendtime, endtime, talklongtime");
1001 1001
             strSql.Append(" FROM T_Call_CallRecords c");

+ 30 - 23
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -701,7 +701,8 @@ namespace CallCenterApi.Interface.Controllers.callout
701 701
             int userid = CurrentUser.UserData.F_UserId;
702 702
             sb.Append(" and F_UserId="+ userid);
703 703
             sb.Append(" and F_DeleteFlag=0 ");
704
-            sb.Append(" and isnull(F_HJJGName,'')!='正常接通' and isnull(F_YHFKName,'')!='已同意'");
704
+            //sb.Append(" and isnull(F_HJJGName,'')!='正常接通' and isnull(F_YHFKName,'')!='已同意'");
705
+            sb.Append(" and isnull(F_HJJGName,'')=''");
705 706
             sb.Append(" and F_Taskid in (select F_TaskID from T_Call_OutTask where F_IsStart=1 and F_DeleteFlag=0)");
706 707
             if (!string.IsNullOrWhiteSpace(key))
707 708
             {
@@ -909,13 +910,13 @@ namespace CallCenterApi.Interface.Controllers.callout
909 910
         /// <returns></returns>
910 911
         public ActionResult Answers(int taskid,int custelid,string[] ans,int hjjgid,int yhfkid, int cusid = 0)
911 912
         {
912
-            if (ans != null)
913
-            {
913
+            
914 914
                 int cc = 0;
915 915
                 var ansModel = new Model.T_Call_OutAnswers();
916 916
                 string askqids = "";
917 917
                 string ansids = "";
918
-
918
+            if (ans != null)
919
+            {
919 920
                 //先删除 后添加
920 921
                 ansBLL.DeleteByTelid(custelid, taskid);
921 922
 
@@ -957,26 +958,29 @@ namespace CallCenterApi.Interface.Controllers.callout
957 958
                     }
958 959
                 }
959 960
 
960
-                if (custelid > 0)
961
+                
962
+            }
963
+            if (custelid > 0)
964
+            {
965
+                var otnModel = otnBLL.GetModel(custelid);
966
+                if (otnModel != null)
961 967
                 {
962
-                    var otnModel = otnBLL.GetModel(custelid);
963
-                    if (otnModel != null)
964
-                    {
965
-                        otnModel.F_HJJGId = hjjgid;
966
-                        var hjconfig = new BLL.T_Sys_DictionaryValue().GetModel(hjjgid);
967
-                        if (hjconfig != null)
968
-                            otnModel.F_HJJGName = hjconfig.F_Name;
969
-                        otnModel.F_YHFKId = yhfkid;
970
-                        var fkconfig = new BLL.T_Sys_DictionaryValue().GetModel(yhfkid);
971
-                        if (fkconfig != null)
972
-                            otnModel.F_YHFKName = fkconfig.F_Name;
973
-                        otnModel.F_AskRes = askqids;
974
-                        otnModel.F_AskInfo = ansids;
975
-                        otnBLL.Update(otnModel);
976
-                        planrecord(otnModel);
977
-                    }
968
+                    otnModel.F_HJJGId = hjjgid;
969
+                    var hjconfig = new BLL.T_Sys_DictionaryValue().GetModel(hjjgid);
970
+                    if (hjconfig != null)
971
+                        otnModel.F_HJJGName = hjconfig.F_Name;
972
+                    otnModel.F_YHFKId = yhfkid;
973
+                    var fkconfig = new BLL.T_Sys_DictionaryValue().GetModel(yhfkid);
974
+                    if (fkconfig != null)
975
+                        otnModel.F_YHFKName = fkconfig.F_Name;
976
+                    otnModel.F_AskRes = askqids;
977
+                    otnModel.F_AskInfo = ansids;
978
+                    otnBLL.Update(otnModel);
979
+                    planrecord(otnModel);
978 980
                 }
979
-
981
+            }
982
+            if (ans != null)
983
+            {
980 984
                 if (cc == ans.Length)
981 985
                 {
982 986
                     return Success("问卷答案提交成功!taskid=" + taskid + ",custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
@@ -987,7 +991,10 @@ namespace CallCenterApi.Interface.Controllers.callout
987 991
                     return Error("问卷答案提交失败!taskid=" + taskid + ",custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
988 992
                 }
989 993
             }
990
-            return Error("没有问卷答案提交");
994
+            else
995
+            {
996
+                return Error("没有问卷答案提交");
997
+            }
991 998
         }
992 999
         #endregion
993 1000
 

+ 5 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -260,9 +260,13 @@ namespace CallCenterApi.Interface.Controllers.tel
260 260
         private string[] col()
261 261
         {
262 262
             string[] ccc = {
263
-                   "电话号码","呼叫方向","呼叫状态","是否处理","坐席工号","坐席姓名",
263
+                   "电话号码","呼叫方向","呼叫状态","坐席工号","坐席姓名",
264 264
                   "开始时间","通话开始时间","通话结束时间","结束时间","通话时长"
265 265
             };
266
+            //string[] ccc = {
267
+            //       "电话号码","呼叫方向","呼叫状态","是否处理","坐席工号","坐席姓名",
268
+            //      "开始时间","通话开始时间","通话结束时间","结束时间","通话时长"
269
+            //};
266 270
             return ccc;
267 271
         }
268 272