Sfoglia il codice sorgente

通话记录-分页查询数据接口调整

yuqian 8 anni fa
parent
commit
9a7a2c65ba

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

66
                 {
66
                 {
67
                     sql += " and UserCode='" + usercode + "'";
67
                     sql += " and UserCode='" + usercode + "'";
68
                 }
68
                 }
69
-                if (dept != null && dept.Trim() != "")
69
+                if (!string.IsNullOrWhiteSpace(dept) && Convert.ToInt32(dept) >= 0)
70
                 {
70
                 {
71
                     sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId=" + dept.Trim() + ")";
71
                     sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId=" + dept.Trim() + ")";
72
                 }
72
                 }