zhangkun лет назад: 5
Родитель
Сommit
f18a7dfa25

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -910,11 +910,11 @@ namespace CallCenterApi.Interface.Controllers.tel
910 910
 
911 911
                 //sql += " and CallNumber like '%" + phone + "%'";
912 912
             }
913
-            if (callstate.Trim() != "")
913
+            if (!string.IsNullOrWhiteSpace(callstate))
914 914
             {
915 915
                 sql += " and CallState='" + callstate + "'";
916 916
             }
917
-            if (calltype.Trim() != "")
917
+            if (!string.IsNullOrWhiteSpace(calltype))
918 918
             {
919 919
                 sql += " and CallType='" + calltype + "'";
920 920
             }