Browse Source

修改客户档案管理搜索接口

machenyang 8 years ago
parent
commit
39305c5b3b

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

32
                 string sql = " and F_DeleteFlag=0";
32
                 string sql = " and F_DeleteFlag=0";
33
                 DataTable dt = new DataTable();
33
                 DataTable dt = new DataTable();
34
                 //联系人
34
                 //联系人
35
-                string strname = HttpUtility.UrlDecode(RequestString.GetFormString("name"));
35
+                string strname = RequestString.GetQueryString("name");
36
                 //电话
36
                 //电话
37
-                string strtel = HttpUtility.UrlDecode(RequestString.GetFormString("tel"));
37
+                string strtel = RequestString.GetQueryString("tel");
38
                 //客户名称
38
                 //客户名称
39
-                string strCus = HttpUtility.UrlDecode(RequestString.GetFormString("Cusname"));
39
+                string strCus = RequestString.GetQueryString("Cusname");
40
                 //省份
40
                 //省份
41
-                string strprov = HttpUtility.UrlDecode(RequestString.GetFormString("province"));
41
+                string strprov = RequestString.GetQueryString("province");
42
 
42
 
43
                 string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
43
                 string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
44
                 string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
44
                 string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
54
                 }
54
                 }
55
                 if (strtel.Trim() != "" && strtel != "undefined")
55
                 if (strtel.Trim() != "" && strtel != "undefined")
56
                 {
56
                 {
57
-                    sql += " and (F_Telephone like '%" + strtel + "%' or F_Mobile like '%" + strtel + "%' or F_ChargeTelephone like '%" + strtel + "%') ";
57
+                    sql += " and F_Telephone like '%" + strtel + "%' ";
58
                 }
58
                 }
59
                 if (strCus.Trim() != "" && strCus != "undefined")
59
                 if (strCus.Trim() != "" && strCus != "undefined")
60
                 {
60
                 {