Pārlūkot izejas kodu

留言记录按照坐席组区分

mengjie 6 gadi atpakaļ
vecāks
revīzija
a542bbffdf

+ 18 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallleaveController.cs

12
 {
12
 {
13
     public class CallleaveController : BaseController
13
     public class CallleaveController : BaseController
14
     {
14
     {
15
+        BLL.T_Sys_SeatGroup seatBLL = new BLL.T_Sys_SeatGroup();
16
+
15
         //获取留言列表
17
         //获取留言列表
16
-        public ActionResult GetList(string strtelnum)
18
+        public ActionResult GetList(string strtelnum,string groname)
17
         {
19
         {
18
 
20
 
19
             if (Request.IsAuthenticated)
21
             if (Request.IsAuthenticated)
31
                 string strpagesize = RequestString.GetQueryString("pagesize");
33
                 string strpagesize = RequestString.GetQueryString("pagesize");
32
                 int pagesize = 10;
34
                 int pagesize = 10;
33
 
35
 
36
+                if (groname != null && groname.Trim() != "")
37
+                {                    
38
+                    string grocode = "";                    
39
+                    string strwhere = " F_ZXZName='" + groname + "'";
40
+                    
41
+                    DataSet ds = seatBLL.GetList(strwhere);
42
+                    DataTable dts = ds.Tables[0];
43
+                    if (dts.Rows .Count >0)
44
+                    {
45
+                        grocode = dts.Rows[0]["F_ZXZCode"].ToString();
46
+                        sql += " and groupcode= '" + grocode.Trim() + "' ";
47
+                    }
48
+                    
49
+                }
50
+
34
                 if (strtelnum != null && strtelnum.Trim() != "")
51
                 if (strtelnum != null && strtelnum.Trim() != "")
35
                 {
52
                 {
36
                     sql += " and F_Phone= '" + strtelnum.Trim() + "' ";
53
                     sql += " and F_Phone= '" + strtelnum.Trim() + "' ";