zhoufan 8 lat temu
rodzic
commit
48c9d6dec0

+ 26 - 26
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/InfoController.cs

@@ -89,7 +89,7 @@ namespace CallCenterApi.Interface.Controllers
89 89
         private object GetSourceCount()
90 90
         {
91 91
             string sql = " select F_Value Source,(select COUNT(1) from T_Bus_WorkOrder where datediff(day,F_RegDate,getdate())=0 and F_IsDelete=0 "
92
-                + " and isnull(F_InfoConSmallType,0)!=0 and F_InfoSource=F_ValueId) Count from  dbo.T_Sys_DictionaryValue where F_ItemId=6 ";
92
+                + " and datalength(F_ComContent) >0 and F_InfoSource=F_ValueId) Count from  dbo.T_Sys_DictionaryValue where F_ItemId=6 ";
93 93
             DataTable dt = DbHelperSQL.Query(sql).Tables[0];
94 94
 
95 95
             return dt;
@@ -98,7 +98,7 @@ namespace CallCenterApi.Interface.Controllers
98 98
         private object GetAreaCount()
99 99
         {
100 100
             string sql = " select F_AreaName AreaName,(select COUNT(1) from T_Bus_WorkOrder where datediff(day,F_RegDate,getdate())=0 and F_IsDelete=0 "
101
-                + "and isnull(F_InfoConSmallType,0)!=0 and F_SourceArea=F_AreaId) Count from dbo.T_Sys_Area ";
101
+                + "and datalength(F_ComContent) >0 and F_SourceArea=F_AreaId) Count from dbo.T_Sys_Area ";
102 102
             DataTable dt = DbHelperSQL.Query(sql).Tables[0];
103 103
 
104 104
             return dt;
@@ -115,7 +115,7 @@ namespace CallCenterApi.Interface.Controllers
115 115
                 cols = areaList.Select(p => p.F_AreaName),
116 116
                 counts = new List<int[]>()
117 117
             };
118
-            //string sql = " select datepart(hh, F_RegDate) as h,COUNT(1) as n from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0  "
118
+            //string sql = " select datepart(hh, F_RegDate) as h,COUNT(1) as n from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0  "
119 119
             //    + " and datediff(day, F_RegDate, getdate()) = 0 group by datepart(hh, F_RegDate) ";
120 120
             //DataTable dt = DbHelperSQL.Query(sql).Tables[0];
121 121
             foreach (var area in areaList)
@@ -123,10 +123,10 @@ namespace CallCenterApi.Interface.Controllers
123 123
                 int[] count = new int[24];
124 124
                 for (int i = 0; i < hours.Length; i++)
125 125
                 {
126
-                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
126
+                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
127 127
                         + " and datediff(day, F_RegDate, getdate()) = 0 and datepart(hh, F_RegDate)=" + hours[i];
128 128
                     count[i] = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
129
-                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
129
+                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and datalength(F_ComContent) >0 "
130 130
                     //    + " and datediff(day, F_RegDate, getdate()) = 0 and datepart(hh, F_RegDate)=" + hours[i]);
131 131
                     //count[i] = list.Count;
132 132
                     //var n = dt.Select(" h=" + hours[i])[0]["n"].ToString();
@@ -171,11 +171,11 @@ namespace CallCenterApi.Interface.Controllers
171 171
                 int[] count = new int[12];
172 172
                 for (int i = 0; i < ints.Length; i++)
173 173
                 {
174
-                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
174
+                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
175 175
                         + " and datediff(month,F_RegDate,getdate())<=12 and datepart(month, F_RegDate)=" + ints[i];
176 176
                     count[i] = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
177 177
 
178
-                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and "
178
+                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and datalength(F_ComContent) >0 and "
179 179
                     //    + "datediff(month,F_RegDate,getdate())<=12 and datepart(month, F_RegDate)=" + ints[i]);
180 180
                     //count[i] = list.Count;
181 181
                 }
@@ -203,19 +203,19 @@ namespace CallCenterApi.Interface.Controllers
203 203
 
204 204
             //for (int i = 0; i < list.Count; i++)
205 205
             //{
206
-            //    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
206
+            //    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
207 207
             //            + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
208 208
             //            + " and F_DeptId=" + list[i].F_DeptId + ")";
209 209
             //    var tl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
210
-            //    sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
210
+            //    sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
211 211
             //            + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
212 212
             //            + " and F_State=1 and F_DeptId=" + list[i].F_DeptId + ")";
213 213
             //    var cl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
214
-            //    //var tl = workOrderBLL.GetModelList("F_IsDelete=0 and isnull(F_InfoConSmallType,0)!=0 "
214
+            //    //var tl = workOrderBLL.GetModelList("F_IsDelete=0 and datalength(F_ComContent) >0 "
215 215
             //    ////+ " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where datediff(day,F_SubmitDate,getdate())=0 "
216 216
             //    //+ " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
217 217
             //    //+ " and F_DeptId=" + list[i].F_DeptId + ")");
218
-            //    //var cl = workOrderBLL.GetModelList("F_IsDelete=0 and isnull(F_InfoConSmallType,0)!=0 "
218
+            //    //var cl = workOrderBLL.GetModelList("F_IsDelete=0 and datalength(F_ComContent) >0 "
219 219
             //    ////+ " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where datediff(day,F_SubmitDate,getdate())=0 "
220 220
             //    //+ " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
221 221
             //    //+ " and F_State=1 and F_DeptId=" + list[i].F_DeptId + ")");
@@ -230,11 +230,11 @@ namespace CallCenterApi.Interface.Controllers
230 230
             //obj.percents.Add(percent);
231 231
 
232 232
             var obj = list.Select(p => {
233
-                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
233
+                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
234 234
                         + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
235 235
                         + " and F_DeptId=" + p.F_DeptId + ")";
236 236
                 var tl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
237
-                sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
237
+                sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
238 238
                         + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
239 239
                         + " and F_State=1 and F_DeptId=" + p.F_DeptId + ")";
240 240
                 var cl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
@@ -257,18 +257,18 @@ namespace CallCenterApi.Interface.Controllers
257 257
 
258 258
             for (int i = 0; i < hours.Count(); i++)
259 259
             {
260
-                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
260
+                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
261 261
                         + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where datediff(day,F_SubmitDate,getdate())=0 "
262 262
                         + " and datepart(hh, F_SubmitDate)=" + hours[i] + ")";
263 263
                 var al = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
264
-                sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
264
+                sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
265 265
                         + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where datediff(day,F_EndDate,getdate())=0 "
266 266
                         + " and F_State=1 and datepart(hh, F_EndDate)=" + hours[i] + ")";
267 267
                 var fl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
268
-                //var al = workOrderBLL.GetModelList("F_IsDelete=0 and isnull(F_InfoConSmallType,0)!=0 "
268
+                //var al = workOrderBLL.GetModelList("F_IsDelete=0 and datalength(F_ComContent) >0 "
269 269
                 //    + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where datediff(day,F_SubmitDate,getdate())=0 "
270 270
                 //    + " and datepart(hh, F_SubmitDate)=" + hours[i] + ")");
271
-                //var fl = workOrderBLL.GetModelList("F_IsDelete=0 and isnull(F_InfoConSmallType,0)!=0 "
271
+                //var fl = workOrderBLL.GetModelList("F_IsDelete=0 and datalength(F_ComContent) >0 "
272 272
                 //    + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where datediff(day,F_EndDate,getdate())=0 "
273 273
                 //    + " and F_State=1 and datepart(hh, F_EndDate)=" + hours[i] + ")");
274 274
                 acounts[i] = al;
@@ -294,7 +294,7 @@ namespace CallCenterApi.Interface.Controllers
294 294
 
295 295
             var obj = list.Select(p =>
296 296
             {
297
-                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
297
+                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
298 298
                         + " and F_InfoType=" + p.F_ValueId;
299 299
                 var tl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
300 300
                 return new
@@ -332,10 +332,10 @@ namespace CallCenterApi.Interface.Controllers
332 332
                 int[] count = new int[12];
333 333
                 for (int i = 0; i < ints.Length; i++)
334 334
                 {
335
-                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and F_InfoType=" + l.F_ValueId
335
+                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 and F_InfoType=" + l.F_ValueId
336 336
                         + " and datediff(month,F_RegDate,getdate())<=12 and datepart(month, F_RegDate)=" + ints[i];
337 337
                     count[i] = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
338
-                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and F_InfoType="+l.F_ValueId
338
+                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and datalength(F_ComContent) >0 and F_InfoType="+l.F_ValueId
339 339
                     //    + " and datediff(month,F_RegDate,getdate())<=12 and datepart(month, F_RegDate)=" + ints[i]);
340 340
                     //count[i] = list.Count;
341 341
                 }
@@ -361,10 +361,10 @@ namespace CallCenterApi.Interface.Controllers
361 361
                 int[] count = new int[24];
362 362
                 for (int i = 0; i < hours.Length; i++)
363 363
                 {
364
-                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and F_InfoType=" + l.F_ValueId
364
+                    string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 and F_InfoType=" + l.F_ValueId
365 365
                        + " and datediff(day,F_RegDate,getdate())=0 and datepart(hh, F_RegDate)=" + hours[i];
366 366
                     count[i] = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
367
-                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and F_InfoType=" + l.F_ValueId
367
+                    //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and datalength(F_ComContent) >0 and F_InfoType=" + l.F_ValueId
368 368
                     //    + " and datediff(day,F_RegDate,getdate())=0 and datepart(hh, F_RegDate)=" + hours[i]);
369 369
                     //count[i] = list.Count;
370 370
                 }
@@ -394,7 +394,7 @@ namespace CallCenterApi.Interface.Controllers
394 394
                 }
395 395
             }
396 396
 
397
-            string sqltotal = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and F_InfoType=6";
397
+            string sqltotal = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 and F_InfoType=6";
398 398
             var t = Int32.Parse(DbHelperSQL.Query(sqltotal).Tables[0].Rows[0][0].ToString());
399 399
 
400 400
             var typelist = dicValueBLL.GetModelList(" F_ValueId in (" + ids + ") ");
@@ -420,7 +420,7 @@ namespace CallCenterApi.Interface.Controllers
420 420
 
421 421
             var obj = list.Select(p =>
422 422
             {
423
-                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
423
+                string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
424 424
                         + " and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo where 1=1 "
425 425
                         + " and F_DeptId=" + p.F_DeptId + ")";
426 426
                 var tl = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
@@ -583,10 +583,10 @@ namespace CallCenterApi.Interface.Controllers
583 583
 
584 584
         //    for (int i = 0; i < typelist.Count; i++)
585 585
         //    {
586
-        //        string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 "
586
+        //        string sql = " select count(1) from dbo.T_Bus_WorkOrder where F_IsDelete = 0 and datalength(F_ComContent) >0 "
587 587
         //                + " and F_InfoType=" + typelist[i].F_ValueId;
588 588
         //        counts[i] = Int32.Parse(DbHelperSQL.Query(sql).Tables[0].Rows[0][0].ToString());
589
-        //        //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and isnull(F_InfoConSmallType,0)!=0 and F_InfoType=" + typelist[i].F_ValueId);
589
+        //        //var list = workOrderBLL.GetModelList("F_IsDelete = 0 and datalength(F_ComContent) >0 and F_InfoType=" + typelist[i].F_ValueId);
590 590
         //        //counts[i] = list.Count;
591 591
         //    }
592 592
         //    var obj = new

+ 54 - 0
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/WebController.cs

@@ -183,6 +183,54 @@ namespace CallCenterApi.Interface.Controllers
183 183
         #region 新闻
184 184
 
185 185
         /// <summary>
186
+        /// 上传图片
187
+        /// </summary>
188
+        /// <returns></returns>
189
+        public ActionResult UploadImage()
190
+        {
191
+            ActionResult res = Error("上传失败");
192
+            string path = string.Empty;
193
+            HttpPostedFile _upfile = RequestString.GetFile("upFile");
194
+            string dataurl = HttpUtility.UrlDecode(RequestString.GetFormString("dataurl"));
195
+            if (_upfile != null)
196
+            {
197
+                path = "/Upload/News/" + DateTime.Now.ToString("yyyy") + "/" + DateTime.Now.ToString("MM") + "/" + DateTime.Now.ToString("dd") + "/";
198
+                ImageUpload iu = new ImageUpload();
199
+                iu.SavePath = path;
200
+                iu.DataUrl = dataurl;
201
+                iu.Upload64();
202
+
203
+                int n = iu.Error;
204
+                if (n == 0)
205
+                {
206
+                    var obj = new {
207
+                        imgurl = path + iu.OutFileName,
208
+                        smallimgurl= path + iu.OutThumbFileName
209
+                    };
210
+
211
+                    res = Success("成功", obj);
212
+                }
213
+                else
214
+                {
215
+                    string msg = string.Empty;
216
+                    switch (n)
217
+                    {
218
+                        case 1: msg = "请选择要上传的文件"; break;
219
+                        case 2: msg = "上传的文件类型不支持"; break;
220
+                        case 3: msg = "上传的文件过大"; break;
221
+                        case 4: msg = "未知错误"; break;
222
+                    }
223
+                    res = Error(msg);
224
+                }
225
+            }
226
+            else
227
+            {
228
+                res = Error("请选择要上传的文件");
229
+            }
230
+            return res;
231
+        }
232
+
233
+        /// <summary>
186 234
         /// 获取新闻列表
187 235
         /// </summary>
188 236
         /// <returns></returns>
@@ -723,6 +771,12 @@ namespace CallCenterApi.Interface.Controllers
723 771
                 {
724 772
                     baseModel.img = configfj.F_ParamValue + baseModel.img;
725 773
                 }
774
+                if (!string.IsNullOrEmpty(baseModel.nr) && configfj != null)
775
+                {
776
+                    Uri uri = new Uri(configfj.F_ParamValue);
777
+
778
+                    baseModel.nr = baseModel.nr.Replace("/js/kindeditor", uri.Scheme + "://" + uri.Authority + "/js/kindeditor");
779
+                }
726 780
                 res = Success("加载成功", baseModel);
727 781
             }
728 782
             else

+ 9 - 9
API/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -80,7 +80,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
80 80
                     if (userModel != null)
81 81
                     {
82 82
                         res = Error("查询失败");
83
-                        string sql = " and F_IsDelete=0 and isnull(F_InfoConSmallType,0)!=0 ";
83
+                        string sql = " and F_IsDelete=0 and datalength(F_ComContent) >0 ";
84 84
                         string strstate = HttpUtility.UrlDecode(RequestString.GetQueryString("state"));
85 85
                         string strname = HttpUtility.UrlDecode(RequestString.GetQueryString("name"));
86 86
                         string strtel = HttpUtility.UrlDecode(RequestString.GetQueryString("tel"));
@@ -320,7 +320,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
320 320
                                 break;
321 321
                             case "1"://当天处理的工单
322 322
                                 sql += "  and F_WorkOrderID in(select F_WorkOrderID from T_Bus_SubmitSuper where DATEDIFF(d,F_SubmitDate,'" + DateTime.Now + "')=0 ";//查询呈批人为当前登录人,呈批时间为今天的数据
323
-                                if (userModel.F_UserCode != "99")
323
+                                if (userModel.F_RoleId != 4)
324 324
                                 {
325 325
                                     sql += " and F_SubmitUserCode='" + userModel.F_UserCode + "')";
326 326
                                 }
@@ -331,7 +331,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
331 331
                                 break;
332 332
                             case "2"://历史记录
333 333
                                 sql += "  and F_WorkOrderID in(select F_WorkOrderID from T_Bus_SubmitSuper where 1=1 ";//查询当前登录人的审批记录
334
-                                if (userModel.F_UserCode != "99")
334
+                                if (userModel.F_RoleId != 4)
335 335
                                 {
336 336
                                     sql += " and F_SubmitUserCode='" + userModel.F_UserCode + "')";
337 337
                                 }
@@ -524,7 +524,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
524 524
                                 break;
525 525
                             case "1"://当天处理的工单
526 526
                                 sql += "  and F_WorkOrderID in(select F_WorkOrderID from T_Bus_SubmitSuper where DATEDIFF(d,F_ApprovalDate,'" + DateTime.Now + "')=0 ";//查询呈批人为当前登录人,呈批时间为今天的数据
527
-                                if (userModel.F_UserCode != "99")
527
+                                if (userModel.F_RoleId != 4)
528 528
                                 {
529 529
                                     sql += " and F_ApprovalUserCode='" + userModel.F_UserCode + "')";
530 530
                                 }
@@ -535,7 +535,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
535 535
                                 break;
536 536
                             case "2"://历史记录
537 537
                                 sql += "  and F_WorkOrderID in(select F_WorkOrderID from T_Bus_SubmitSuper where 1=1 ";//查询当前登录人的审批记录
538
-                                if (userModel.F_UserCode != "99")
538
+                                if (userModel.F_RoleId != 4)
539 539
                                 {
540 540
                                     sql += " and F_ApprovalUserCode='" + userModel.F_UserCode + "')";
541 541
                                 }
@@ -872,7 +872,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
872 872
                             }
873 873
                             else
874 874
                             {
875
-                                if (userModel.F_UserCode != "99")
875
+                                if (userModel.F_RoleId != 4)
876 876
                                 {
877 877
                                     sql += " and F_DeptId='" + userModel.F_DeptId + "')";
878 878
                                 }
@@ -1029,7 +1029,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1029 1029
                         if (dept != null) { deptname = dept.F_DeptName; }
1030 1030
 
1031 1031
                         sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_RemindRecord where 1=1 ";
1032
-                        if (userModel.F_UserCode != "99")
1032
+                        if (userModel.F_RoleId != 4)
1033 1033
                         {
1034 1034
                             sql += " and F_DeptName ='" + deptname + "') ";
1035 1035
                         }
@@ -1273,14 +1273,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
1273 1273
                                 break;
1274 1274
                             case "1"://当天处理的工单
1275 1275
                                 sql += " and F_InfoSource=30 and F_IsEnabled=1 and (F_IsDelete=0 or (F_IsDelete=1 and F_IsEnabled=1)) and  DATEDIFF(d,F_EnableTime,'" + DateTime.Now + "')=0 ";//查询呈批人为当前登录人,呈批时间为今天的数据
1276
-                                if (userModel.F_UserCode != "99")
1276
+                                if (userModel.F_RoleId != 4)
1277 1277
                                 {
1278 1278
                                     sql = " and F_UserCode='" + userModel.F_UserCode + "' ";
1279 1279
                                 }
1280 1280
                                 break;
1281 1281
                             case "2"://历史记录
1282 1282
                                 sql += "  and F_InfoSource=30 and (F_IsDelete=0 or (F_IsDelete=1 and F_IsEnabled=1)) ";//查询当前登录人的审批记录
1283
-                                if (userModel.F_UserCode != "99")
1283
+                                if (userModel.F_RoleId != 4)
1284 1284
                                 {
1285 1285
                                     sql = " and F_UserCode='" + userModel.F_UserCode + "' ";
1286 1286
                                 }