|
|
@@ -34,15 +34,15 @@ namespace CallCenterApi.Interface.Controllers
|
|
34
|
34
|
string sql = " and IsDelete = 0 ";
|
|
35
|
35
|
//string id = RequestString.GetQueryString("id");
|
|
36
|
36
|
// 状态
|
|
37
|
|
- int isstate = RequestString.GetInt("isstate", 0);
|
|
|
37
|
+ int isstate = RequestString.GetInt("isstate", -1);
|
|
38
|
38
|
string strstarttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
|
|
39
|
39
|
string strendtime = HttpUtility.UrlDecode(RequestString.GetQueryString("endtime"));
|
|
40
|
|
- string strpageindex = RequestString.GetQueryString("page");
|
|
|
40
|
+ string strpageindex = RequestString.GetQueryString("pageindex");
|
|
41
|
41
|
int pageindex = 1;
|
|
42
|
42
|
string strpagesize = RequestString.GetQueryString("pagesize");
|
|
43
|
43
|
int pagesize = 10;
|
|
44
|
44
|
|
|
45
|
|
- if (isstate > 0)
|
|
|
45
|
+ if (isstate >= 0)
|
|
46
|
46
|
sql += $" AND IsState = {isstate}";
|
|
47
|
47
|
if (strstarttime.Trim() != "" && strstarttime != "undefined")
|
|
48
|
48
|
{
|
|
|
@@ -115,10 +115,10 @@ namespace CallCenterApi.Interface.Controllers
|
|
115
|
115
|
#region 添加验证判断
|
|
116
|
116
|
if (string.IsNullOrEmpty(input.Title))
|
|
117
|
117
|
return Error("标题不能为空!");
|
|
118
|
|
- if (string.IsNullOrEmpty(input.StartDate.ToString()))
|
|
119
|
|
- return Error("生效时间不能为空!");
|
|
120
|
|
- if (string.IsNullOrEmpty(input.EndDate.ToString()))
|
|
121
|
|
- return Error("失效时间不能为空!");
|
|
|
118
|
+ //if (string.IsNullOrEmpty(input.StartDate.ToString()))
|
|
|
119
|
+ // return Error("生效时间不能为空!");
|
|
|
120
|
+ //if (string.IsNullOrEmpty(input.EndDate.ToString()))
|
|
|
121
|
+ // return Error("失效时间不能为空!");
|
|
122
|
122
|
#endregion
|
|
123
|
123
|
var model = new Model.T_Sys_IVRWords();
|
|
124
|
124
|
//获取房东信息
|
|
|
@@ -154,10 +154,10 @@ namespace CallCenterApi.Interface.Controllers
|
|
154
|
154
|
#region 添加验证判断
|
|
155
|
155
|
if (string.IsNullOrEmpty(input.Title))
|
|
156
|
156
|
return Error("标题不能为空!");
|
|
157
|
|
- if (string.IsNullOrEmpty(input.StartDate.ToString()))
|
|
158
|
|
- return Error("生效时间不能为空!");
|
|
159
|
|
- if (string.IsNullOrEmpty(input.EndDate.ToString()))
|
|
160
|
|
- return Error("失效时间不能为空!");
|
|
|
157
|
+ //if (string.IsNullOrEmpty(input.StartDate.ToString()))
|
|
|
158
|
+ // return Error("生效时间不能为空!");
|
|
|
159
|
+ //if (string.IsNullOrEmpty(input.EndDate.ToString()))
|
|
|
160
|
+ // return Error("失效时间不能为空!");
|
|
161
|
161
|
#endregion
|
|
162
|
162
|
var model = bll.GetModel(input.ID);
|
|
163
|
163
|
if (model == null)
|