|
|
@@ -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
|
{
|