mengjie 5 gadi atpakaļ
vecāks
revīzija
c2ad11d514

+ 11 - 11
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IVRWordsController.cs

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