Ver Código Fonte

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

yuqian 8 anos atrás
pai
commit
b4cfe17b9e

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

@@ -221,6 +221,7 @@ namespace CallCenterApi.Interface.Controllers.callout
221 221
                 connectedagentrate = connectedAgentRate,             //转坐席率    
222 222
             });
223 223
         }
224
+        [Authority]
224 225
         /// <summary>
225 226
         /// 添加/修改
226 227
         /// </summary>

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

@@ -223,7 +223,11 @@ namespace CallCenterApi.Interface.Controllers.tel
223 223
                 }
224 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 232
                 if (phone != null && phone.Trim() != "")
229 233
                 {