Quellcode durchsuchen

自动回访列表

userName vor 1 Jahr
Ursprung
Commit
b973a34596

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

@@ -473,11 +473,11 @@ namespace CallCenterApi.DAL
473 473
             //StringBuilder strSql = new StringBuilder();         
474 474
 
475 475
             StringBuilder tablenew = new StringBuilder();
476
-            tablenew.Append("select * from (select salesOffice, orderNature,phone,question1, callState,");
477
-            tablenew.Append("( case when isconnect = 1   then     case result1 when  '10' 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  '10' then '10'    when '9' then '9'   when '8' then '8'   else '未评价'     end     else '' end ) result2,question3,");
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  '10' then '10'     when '9' then '9'    when '8' then '8'   else '未评价'   end  else ''  end end  ) result3  ,");
476
+            tablenew.Append("select * from (select salesOffice, orderNature,phone,question1, callState,result1,question2,result2,question3,result3  ,");
477
+            //tablenew.Append("( case when isconnect = 1   then     case result1 when  '10' 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  '10' then '10'    when '9' then '9'   when '8' then '8'   else '未评价'     end     else '' end ) result2,question3,");
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  '10' 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
 

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

@@ -554,12 +554,14 @@ 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  '10' 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  '10' then '10'    when '9' then '9'   when '8' then '8'   else '未评价'     end     else '' end )result2,question3,");
557
+                tablenew.Append("result1,question2,result2,question3,result3, ");
558
+
559
+                //tablenew.Append(" (case when isconnect = 1   then     case result1 when  '10' then '10'  when '9' then '9' when '8' then '8'    else '未评价' end else '' end ) result1,question2, ");
560
+                //tablenew.Append(" ( case when isconnect = 1  then    case result2 when  '10' then '10'    when '9' then '9'   when '8' then '8'   else '未评价'     end     else '' end )result2,question3,");
559 561
                 //  tablenew.Append(" case when isconnect = 1 then    case result3 when  1 then '十分满意'     when 2 then '满意'    when 3 then '不满意'   else '未评价'     end     else ''  end result3");
560 562
                 // 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 563
 
562
-                tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  '10' then '10'     when '9' then '9'    when '8' then '8'   else '未评价'   end  else ''  end end  ) result3  ,");
564
+                //tablenew.Append("(case when question3 IS NULL  then ''  else    case when isconnect = 1 then    case  result3 when  '10' then '10'     when '9' then '9'    when '8' then '8'   else '未评价'   end  else ''  end end  ) result3  ,");
563 565
                 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 566
                 var recordCount = 0;
565 567
                 dt = BLL.PagerBLL.GetListPager(
@@ -594,6 +596,7 @@ namespace CallCenterApi.Interface.Controllers
594 596
                         }
595 597
                     }
596 598
 
599
+                   
597 600
                 }
598 601
 
599 602
                 var obj = new