|
|
@@ -151,14 +151,14 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
151
|
151
|
string strtel = HttpUtility.UrlDecode(RequestString.GetQueryString("tel"));
|
|
152
|
152
|
string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
|
|
153
|
153
|
string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
|
|
154
|
|
- int type = RequestString.GetInt("type", 0);
|
|
155
|
|
- int State = RequestString.GetInt("state", 0);
|
|
156
|
|
- int acceptance = RequestString.GetInt("acceptance", 0);
|
|
|
154
|
+ //int type = RequestString.GetInt("type", 0);
|
|
|
155
|
+ int State = RequestString.GetInt("state", 0);
|
|
|
156
|
+ //int acceptance = RequestString.GetInt("acceptance", 0);
|
|
157
|
157
|
string strpageindex = RequestString.GetQueryString("page");
|
|
158
|
158
|
int pageindex = 1;
|
|
159
|
159
|
string strpagesize = RequestString.GetQueryString("pagesize");
|
|
160
|
160
|
int pagesize = 10;
|
|
161
|
|
- sql += " and State= '" + State + "' ";
|
|
|
161
|
+ sql += " and State= 0 ";
|
|
162
|
162
|
if (strtel.Trim() != "" && strtel != "undefined")
|
|
163
|
163
|
{
|
|
164
|
164
|
sql += " and CallerNum= '" + strtel.Trim() + "' ";
|
|
|
@@ -171,18 +171,18 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
171
|
171
|
{
|
|
172
|
172
|
sql += " and RecvTime <= '" + Convert.ToDateTime(strendtime.Trim()) + "' ";
|
|
173
|
173
|
}
|
|
174
|
|
- if (type > 0)
|
|
175
|
|
- {
|
|
176
|
|
- if (type == 1)
|
|
177
|
|
- {
|
|
178
|
|
- sql += " and F_CustomerID=1 ";
|
|
179
|
|
- }
|
|
180
|
|
- else
|
|
181
|
|
- {
|
|
182
|
|
- sql += " and F_CustomerID is null ";
|
|
|
174
|
+ //if (type > 0)
|
|
|
175
|
+ //{
|
|
|
176
|
+ // if (type == 1)
|
|
|
177
|
+ // {
|
|
|
178
|
+ // sql += " and F_CustomerID=1 ";
|
|
|
179
|
+ // }
|
|
|
180
|
+ // else
|
|
|
181
|
+ // {
|
|
|
182
|
+ // sql += " and F_CustomerID is null ";
|
|
183
|
183
|
|
|
184
|
|
- }
|
|
185
|
|
- }
|
|
|
184
|
+ // }
|
|
|
185
|
+ //}
|
|
186
|
186
|
|
|
187
|
187
|
if (strpageindex.Trim() != "")
|
|
188
|
188
|
{
|
|
|
@@ -193,17 +193,17 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
193
|
193
|
{
|
|
194
|
194
|
pagesize = Convert.ToInt32(strpagesize);
|
|
195
|
195
|
}
|
|
196
|
|
- if (acceptance > 0)
|
|
197
|
|
- {
|
|
198
|
|
- if (acceptance == 1)
|
|
199
|
|
- {
|
|
200
|
|
- sql += " and F_Name !=''";
|
|
201
|
|
- }
|
|
202
|
|
- else
|
|
203
|
|
- {
|
|
204
|
|
- sql += " and (F_Name ='' or F_Name is null )";
|
|
205
|
|
- }
|
|
206
|
|
- }
|
|
|
196
|
+ //if (acceptance > 0)
|
|
|
197
|
+ //{
|
|
|
198
|
+ // if (acceptance == 1)
|
|
|
199
|
+ // {
|
|
|
200
|
+ // sql += " and F_Name !=''";
|
|
|
201
|
+ // }
|
|
|
202
|
+ // else
|
|
|
203
|
+ // {
|
|
|
204
|
+ // sql += " and (F_Name ='' or F_Name is null )";
|
|
|
205
|
+ // }
|
|
|
206
|
+ //}
|
|
207
|
207
|
int recordCount = 0;
|
|
208
|
208
|
dt = Bll.PagerBll.GetListPager(
|
|
209
|
209
|
"T_SMS_RecvSMS",
|