Przeglądaj źródła

通话记录搜索当前部门及下属所有部门
添加外呼任务加登录验证

yuqian 8 lat temu
rodzic
commit
b4cfe17b9e

+ 1 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallPlanController.cs

221
                 connectedagentrate = connectedAgentRate,             //转坐席率    
221
                 connectedagentrate = connectedAgentRate,             //转坐席率    
222
             });
222
             });
223
         }
223
         }
224
+        [Authority]
224
         /// <summary>
225
         /// <summary>
225
         /// 添加/修改
226
         /// 添加/修改
226
         /// </summary>
227
         /// </summary>

+ 5 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

223
                 }
223
                 }
224
                 if (dept != null && dept.Trim() != "")
224
                 if (dept != null && dept.Trim() != "")
225
                 {
225
                 {
226
-                    sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId=" + dept.Trim() + ")";
226
+                    var deptModel = deptBLL.GetModel(!string.IsNullOrWhiteSpace(dept) ? Convert.ToInt32(dept) : 0);
227
+                    if (deptModel != null)
228
+                    {
229
+                        sql += $" and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId in (select F_DeptId from T_Sys_Department where F_DeptCode like '{deptModel.F_DeptCode}%'))";
230
+                    }
227
                 }
231
                 }
228
                 if (phone != null && phone.Trim() != "")
232
                 if (phone != null && phone.Trim() != "")
229
                 {
233
                 {