Просмотр исходного кода

留言记录按照坐席组区分

mengjie лет назад: 6
Родитель
Сommit
a542bbffdf

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

@@ -12,8 +12,10 @@ namespace CallCenterApi.Interface.Controllers.tel
12 12
 {
13 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 21
             if (Request.IsAuthenticated)
@@ -31,6 +33,21 @@ namespace CallCenterApi.Interface.Controllers.tel
31 33
                 string strpagesize = RequestString.GetQueryString("pagesize");
32 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 51
                 if (strtelnum != null && strtelnum.Trim() != "")
35 52
                 {
36 53
                     sql += " and F_Phone= '" + strtelnum.Trim() + "' ";