Przeglądaj źródła

调整分配任务,只能分配启动中的任务
我的任务、我的任务结果、任务结果 增加时间搜索
调整工单接口
ivr提交

zhengbingbing 7 lat temu
rodzic
commit
edd4fd5d13

+ 42 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -572,10 +572,18 @@ namespace CallCenterApi.Interface.Controllers.callout
572 572
             StringBuilder sb = new StringBuilder();
573 573
 
574 574
             sb.Append(" and F_FPState=0 and F_DeleteFlag=0 ");
575
+            var sql = "";
575 576
             if (!string.IsNullOrWhiteSpace(key))
576 577
             {
577
-                sb.Append(" and F_Taskid in (select F_TaskID from T_Call_OutTask where F_TaskName like '%" + key + "%' or F_TaskRemark like '%" + key + "%' and F_IsStart=1 and F_DeleteFlag=0 ) ");
578
+                sql += " and F_Phone='" + key + "' or  F_TaskName like '%" + key + "%' or F_TaskRemark like '%" + key + "%'";
578 579
             }
580
+            sb.Append(" and F_Taskid in (select F_TaskID from T_Call_OutTask where  F_IsStart=1 and F_DeleteFlag=0 " + sql + " ) ");
581
+            #region 20180612 zhengbingbing 需要调整部分语句必须执行
582
+            //if (!string.IsNullOrWhiteSpace(key))
583
+            //{
584
+            //    sb.Append(" and F_Taskid in (select F_TaskID from T_Call_OutTask where F_TaskName like '%" + key + "%' or F_TaskRemark like '%" + key + "%' and F_IsStart=1 and F_DeleteFlag=0 ) ");
585
+            //}
586
+            #endregion
579 587
             int userid = CurrentUser.UserData.F_UserId;
580 588
             string username = CurrentUser.UserData.F_UserName;
581 589
             #region 按数量平均分配
@@ -763,7 +771,7 @@ namespace CallCenterApi.Interface.Controllers.callout
763 771
             return Success("获取成功", obj);
764 772
         }
765 773
         //获取我的任务列表
766
-        public ActionResult GetMyTaskList(string key, int pagesize = 10, int pageindex = 1)
774
+        public ActionResult GetMyTaskList(string key, string sdate, string edate, int pagesize = 10, int pageindex = 1)
767 775
         {
768 776
             StringBuilder sb = new StringBuilder();
769 777
             int userid = CurrentUser.UserData.F_UserId;
@@ -778,6 +786,16 @@ namespace CallCenterApi.Interface.Controllers.callout
778 786
             {
779 787
                 sb.Append(" and F_Phone like '%" + key.Trim() + "%'");
780 788
             }
789
+            #region 增加时间搜索
790
+            if (!string.IsNullOrWhiteSpace(sdate))
791
+            {
792
+                sb.Append(" and datediff(day,ExpandDatField1,'" + sdate.Trim() + "')<=0");
793
+            }
794
+            if (!string.IsNullOrWhiteSpace(edate))
795
+            {
796
+                sb.Append(" and datediff(day,ExpandDatField1,'" + edate.Trim() + "')>=0");
797
+            }
798
+            #endregion
781 799
             //string sqlwhere = "";
782 800
             //if (!string.IsNullOrWhiteSpace(key))
783 801
             //{
@@ -805,7 +823,7 @@ namespace CallCenterApi.Interface.Controllers.callout
805 823
             return Content(obj.ToJson());
806 824
         }
807 825
         //获取我的任务结果
808
-        public ActionResult GetMyResultList(string key, int hjjgid = 0, int yhfkid = 0, int pagesize = 10, int pageindex = 1)
826
+        public ActionResult GetMyResultList(string key, string sdate, string edate, int hjjgid = 0, int yhfkid = 0, int pagesize = 10, int pageindex = 1)
809 827
         {
810 828
             StringBuilder sb = new StringBuilder();
811 829
             int userid = CurrentUser.UserData.F_UserId;
@@ -828,6 +846,16 @@ namespace CallCenterApi.Interface.Controllers.callout
828 846
             {
829 847
                 sb.Append(" and F_Phone like '%" + key.Trim() + "%'");
830 848
             }
849
+            #region 增加时间搜索
850
+            if (!string.IsNullOrWhiteSpace(sdate))
851
+            {
852
+                sb.Append(" and datediff(day,ExpandDatField1,'" + sdate.Trim() + "')<=0");
853
+            }
854
+            if (!string.IsNullOrWhiteSpace(edate))
855
+            {
856
+                sb.Append(" and datediff(day,ExpandDatField1,'" + edate.Trim() + "')>=0");
857
+            }
858
+            #endregion
831 859
             //string sqlwhere = "";
832 860
             //if (!string.IsNullOrWhiteSpace(key))
833 861
             //{
@@ -867,7 +895,7 @@ namespace CallCenterApi.Interface.Controllers.callout
867 895
             return Content(obj.ToJson());
868 896
         }
869 897
         //获取总体任务结果
870
-        public ActionResult GetResultList(string key, int userid = 0, int hjjgid = 0, int yhfkid = 0, int pagesize = 10, int pageindex = 1)
898
+        public ActionResult GetResultList(string key, string sdate, string edate, int userid = 0, int hjjgid = 0, int yhfkid = 0, int pagesize = 10, int pageindex = 1)
871 899
         {
872 900
             StringBuilder sb = new StringBuilder();
873 901
             #region 查询条件
@@ -892,6 +920,16 @@ namespace CallCenterApi.Interface.Controllers.callout
892 920
             {
893 921
                 sb.Append(" and F_Phone like '%" + key.Trim() + "%'");
894 922
             }
923
+            #region 增加时间搜索
924
+            if (!string.IsNullOrWhiteSpace(sdate))
925
+            {
926
+                sb.Append(" and datediff(day,ExpandDatField1,'" + sdate.Trim() + "')<=0");
927
+            }
928
+            if (!string.IsNullOrWhiteSpace(edate))
929
+            {
930
+                sb.Append(" and datediff(day,ExpandDatField1,'" + edate.Trim() + "')>=0");
931
+            }
932
+            #endregion
895 933
             //string sqlwhere = "";
896 934
             //if (!string.IsNullOrWhiteSpace(key))
897 935
             //{

+ 11 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -152,6 +152,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
152 152
                         string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
153 153
                         string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
154 154
                         string strisreward = HttpUtility.UrlDecode(RequestString.GetQueryString("isreward"));
155
+                        string strstate = HttpUtility.UrlDecode(RequestString.GetQueryString("state"));
155 156
                         string strpageindex = RequestString.GetQueryString("page");
156 157
                         int pageindex = 1;
157 158
                         string strpagesize = RequestString.GetQueryString("pagesize");
@@ -228,6 +229,16 @@ namespace CallCenterApi.Interface.Controllers.workorder
228 229
                         {
229 230
                             sql += " and ISReward=" + strisreward.Trim();
230 231
                         }
232
+                        #region 针对已参与工单增加状态搜索
233
+                        //20180612 zhengbingbing
234
+                        if (strstate.Trim() != "" && strstate != "undefined")
235
+                        {
236
+                            if (strstate.Trim() == "0")
237
+                                sql += " and State <> '2' ";
238
+                            else
239
+                                sql += " and State = '2' ";
240
+                        }
241
+                        #endregion
231 242
                         #endregion
232 243
                         if (strpageindex.Trim() != "")
233 244
                         {

+ 1 - 3
ivr/IVR_XXDC.xml

@@ -1,6 +1,6 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <ivr>
3
-	<flow Name="IVR_XXDC" Type="normal" MatchedNum="." MatchedLine="|-1|" Concurrency="1">
3
+	<flow Name="IVR_RZMD" Type="normal" MatchedNum="." MatchedLine="|-1|" Concurrency="1">
4 4
 		<cell Name="CELL_START" Pos="1" Next="2" Note="开始节点" />
5 5
 		<cell Name="CELL_SQL" Pos="2" ConnStr="Provider=SQLOLEDB.1;Password=hykj800100;Persist Security Info=True;User ID=sa;Initial Catalog=CallCenter_XiXianDC;Data Source=192.168.1.2" 
6 6
 		SqlStr="INSERT INTO T_Call_CallRecords(CallId,CallNumber,CallType,CallState,DealType,BeginTime,IvrStartTime,IvrEndTime,EndTime,LongTime,IsDeal,OperateType,MYD) VALUES('%[CallID]','%[CallerID]',0,0,0,GETDATE(),GETDATE(),GETDATE(),GETDATE(),0,0,0,0)" 
@@ -92,8 +92,6 @@
92 92
 			<Map Var="zbdh" />
93 93
 		</cell>
94 94
 		<cell Name="CELL_TRANSFEROUT" Pos="30" CalleeNumType="1" CalleeNum="zbdh" Timeout="60" SuccessPos="25" FailPos="24" Note="转值班电话" />
95
-		<!--20170515:::13523455559-->
96
-		<!--20170510:::13523455555-->
97 95
 		<!--转值班电话-->
98 96
 	</flow>		
99 97
 </ivr>

BIN
ivr/wav/BusyWait.wav


BIN
ivr/wav/Test.wav


BIN
ivr/wav/holdmusic.wav


BIN
ivr/wav/test001.wav


BIN
ivr/wav/welcome.wav


BIN
ivr/wav/主菜单.wav


BIN
ivr/wav/保持音bak.wav


BIN
ivr/wav/坐席回铃音.wav


BIN
ivr/wav/欢迎词.wav


BIN
ivr/wav/转值班电话提示_20170510bak.wav