Procházet zdrojové kódy

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

yuqian %!s(int64=8) %!d(string=před) roky
rodič
revize
9a7a2c65ba

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

@@ -66,7 +66,7 @@ namespace CallCenterApi.Interface.Controllers.tel
66 66
                 {
67 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 71
                     sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId=" + dept.Trim() + ")";
72 72
                 }