Procházet zdrojové kódy

通话记录录屏批量下载到本地电脑

lihai %!s(int64=6) %!d(string=před) roky
rodič
revize
c1f166e772

+ 13 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

133
         /// <param name="phone"></param>
133
         /// <param name="phone"></param>
134
         /// <param name="usercode"></param>
134
         /// <param name="usercode"></param>
135
         /// <returns></returns>
135
         /// <returns></returns>
136
-        public ActionResult Sound(string phone, string usercode)
136
+        public ActionResult Sound(string phone, string usercode, int seartgroupid)
137
         {
137
         {
138
             string sql = "";
138
             string sql = "";
139
             string callstate = HttpUtility.UrlDecode(RequestString.GetQueryString("callstate"));
139
             string callstate = HttpUtility.UrlDecode(RequestString.GetQueryString("callstate"));
142
             string endtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
142
             string endtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
143
             string dept = HttpUtility.UrlDecode(RequestString.GetQueryString("dept"));
143
             string dept = HttpUtility.UrlDecode(RequestString.GetQueryString("dept"));
144
             string dealtype = HttpUtility.UrlDecode(RequestString.GetQueryString("dealtype"));
144
             string dealtype = HttpUtility.UrlDecode(RequestString.GetQueryString("dealtype"));
145
-            //if (!string.IsNullOrEmpty(userModel.groupcode))
145
+            
146
+            Model.T_Sys_SeatGroup groupModel = new BLL.T_Sys_SeatGroup().GetModel(seartgroupid);
147
+
148
+            if (groupModel != null)
149
+            {
150
+                if (!string.IsNullOrEmpty(groupModel.F_ZXZCode))
151
+                {
152
+                    sql += " and groupcode = '" + groupModel.F_ZXZCode + "' ";
153
+                }
154
+            }
155
+            //if (!string.IsNullOrEmpty(groupcode))
146
             //{
156
             //{
147
-            //    sql += " and groupcode = '" + userModel.groupcode + "' ";
157
+            //    sql += " and groupcode = '" + groupcode + "' ";
148
             //}
158
             //}
149
-
150
             if (usercode != null && usercode.Trim() != "")
159
             if (usercode != null && usercode.Trim() != "")
151
             {
160
             {
152
                 sql += " and UserCode='" + usercode + "'";
161
                 sql += " and UserCode='" + usercode + "'";