Ver Código Fonte

自动外呼修改

userName 1 ano atrás
pai
commit
f96bbf3498

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.DAL/T_AutomaticCall_Phone.cs

@@ -474,10 +474,10 @@ namespace CallCenterApi.DAL
474 474
 
475 475
             StringBuilder tablenew = new StringBuilder();
476 476
             tablenew.Append("select * from (select salesOffice, orderNature,phone,question1, callState,");
477
-            tablenew.Append("( case when isconnect = 1   then     case result1 when  1 then '1'  when 2 then '2' when 3 then '3'          else '未评价' end else '' end  ) result1,question2, ");
478
-            tablenew.Append(" (case when isconnect = 1  then    case result2 when  1 then '1'    when 2 then '2'   when 3 then '3'   else '未评价'     end     else '' end ) result2,question3,");
477
+            tablenew.Append("( case when isconnect = 1   then     case result1 when  1 then '10'  when 9 then '9' when 8 then '8'          else '未评价' end else '' end  ) result1,question2, ");
478
+            tablenew.Append(" (case when isconnect = 1  then    case result2 when  1 then '10'    when 9 then '9'   when 8 then '8'   else '未评价'     end     else '' end ) result2,question3,");
479 479
             //   tablenew.Append(" case when question3 IS NULL  then ''   else  case  result3 when  1 then '十分满意'     when 2 then '满意'    when 3 then '不满意'   else '未评价'     end    end   else ''   end   result3 ");
480
-            tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  1 then '1'     when 2 then '2'    when 3 then '3'   else '未评价'   end  else ''  end end  ) result3  ,");
480
+            tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  1 then '10'     when 9 then '9'    when 8 then '8'   else '未评价'   end  else ''  end end  ) result3  ,");
481 481
             tablenew.Append("  (case when isconnect =1 then '是' else '否' end ) connect, calltime,phone.taskId,isconnect,Isnull(phone.totalTime,0) totalTime   from T_AutomaticCall_Phone  phone  left join T_AutomaticCall_Task  task on phone.taskid = task.taskid) as t");
482 482
 
483 483
 

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/AutomaticCallController.cs

@@ -554,12 +554,12 @@ namespace CallCenterApi.Interface.Controllers
554 554
                 //   "营业部","电话号码","用户分类","问题","结果","日期"
555 555
                 StringBuilder tablenew = new StringBuilder();
556 556
                 tablenew.Append("(select callState , phone, salesOffice, orderNature,question1,F_Id,answerTime, ");
557
-                tablenew.Append(" (case when isconnect = 1   then     case result1 when  1 then '1'  when 2 then '2' when 3 then '3'    else '未评价' end else '' end ) result1,question2, ");
558
-                tablenew.Append(" ( case when isconnect = 1  then    case result2 when  1 then '1'    when 2 then '2'   when 3 then '3'   else '未评价'     end     else '' end )result2,question3,");
557
+                tablenew.Append(" (case when isconnect = 1   then     case result1 when  1 then '10'  when 9 then '9' when 8 then '8'    else '未评价' end else '' end ) result1,question2, ");
558
+                tablenew.Append(" ( case when isconnect = 1  then    case result2 when  1 then '10'    when 9 then '9'   when 8 then '8'   else '未评价'     end     else '' end )result2,question3,");
559 559
                 //  tablenew.Append(" case when isconnect = 1 then    case result3 when  1 then '十分满意'     when 2 then '满意'    when 3 then '不满意'   else '未评价'     end     else ''  end result3");
560 560
                 // tablenew.Append(" (case when question3 IS NULL  then ''   else  case  result3 when  1 then '十分满意'     when 2 then '满意'    when 3 then '不满意'   else '未评价'     end    end    else ''   end  ) result3 ");
561 561
 
562
-                tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  1 then '1'     when 2 then '2'    when 3 then '3'   else '未评价'   end  else ''  end end  ) result3  ,");
562
+                tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  1 then '10'     when 9 then '9'    when 8 then '8'   else '未评价'   end  else ''  end end  ) result3  ,");
563 563
                 tablenew.Append("  (case when isconnect =1 then '是' else '否' end ) connect, isconnect,calltime , phone.taskid ,Isnull(phone.totalTime,0) totalTime  from T_AutomaticCall_Phone  phone  left join T_AutomaticCall_Task  task on phone.taskid = task.taskid) as t");
564 564
                 var recordCount = 0;
565 565
                 dt = BLL.PagerBLL.GetListPager(