zhoufan 3 vuotta sitten
vanhempi
commit
edec24839e

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

63
             {
63
             {
64
                 if (Business == 2)
64
                 if (Business == 2)
65
                 {
65
                 {
66
-                    sql += " and (Business = 2 or Business is null)";
66
+                    sql += " and (Business = '2' or Business is null)";
67
                 }
67
                 }
68
                 else
68
                 else
69
                 {
69
                 {
145
                 }
145
                 }
146
                 else if (callstate.Trim() == "3")
146
                 else if (callstate.Trim() == "3")
147
                 {
147
                 {
148
-                    sql += " and CallState=0 and CallType=0 and isnull(UserCode,'')='' and Business!='1' and Business!='4' ";
148
+                    sql += " and CallState=0 and CallType=0 and isnull(UserCode,'')='' and (Business is null or Business='2' or Business='3') ";
149
                 }
149
                 }
150
                 else if (callstate.Trim() == "4")
150
                 else if (callstate.Trim() == "4")
151
                 {
151
                 {