duhongyu 3 years ago
parent
commit
63f33cc0bc

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DepartmentController.cs

@@ -318,11 +318,11 @@ namespace CallCenterApi.Interface.Controllers
318 318
                 {
319 319
                     keywords = keywords.Replace("'", "");
320 320
                 }
321
-                dt = new BLL.T_Sys_Department().GetList(" F_State=1" + $" and F_DeptName like '%" + keywords.Trim() + "%'  ").Tables[0];
321
+                dt = new BLL.T_Sys_Department().GetList(" F_State=1" + $" and F_DeptName like '%" + keywords.Trim() + "%' and F_DeptId !=2 ").Tables[0];
322 322
             }
323 323
             else
324 324
             {
325
-                dt = new BLL.T_Sys_Department().GetList(" F_State=1 and F_ParentId=" + pId).Tables[0];
325
+                dt = new BLL.T_Sys_Department().GetList(" F_State=1 and F_DeptId !=2  and F_ParentId=" + pId).Tables[0];
326 326
             }
327 327
             List<Model.TreeModel> modelList = BindAssignTree(dt, "0", type);
328 328
             if (modelList != null)

+ 2 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -5097,7 +5097,8 @@ namespace CallCenterApi.Interface.Controllers.weixin
5097 5097
                 if (ua != null)
5098 5098
                 {
5099 5099
 
5100
-
5100
+                    if (isover == 1 && ua.F_DeptId != 12 && ua.F_DeptId != 37)
5101
+                        return Error("权限不足");
5101 5102
                     Model.T_Wo_WorkOrder model = woBLL.GetModel(orderid);
5102 5103
                     var deptmodel = departmentBLL.GetModel(ua.F_DeptId);
5103 5104
                     if (deptmodel != null)

+ 2 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -6975,6 +6975,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
6975 6975
             {
6976 6976
                 if (string.IsNullOrEmpty(cont))
6977 6977
                     return Error("请输入处理内容");
6978
+               if (isover ==1&& CurrentUser.UserData.F_DeptId != 12 && CurrentUser.UserData.F_DeptId != 37)
6979
+                    return Error("权限不足");
6978 6980
                 Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
6979 6981
                 WorkOrderNewInput input = new WorkOrderNewInput();
6980 6982
                 if (ua != null)

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

@@ -22,7 +22,7 @@
22 22
   </connectionStrings>
23 23
   <system.web>
24 24
     <compilation debug="true" targetFramework="4.5"/>
25
-    <httpRuntime targetFramework="4.5" maxRequestLength="20971520" executionTimeout="360000"/>
25
+    <httpRuntime targetFramework="4.5" maxRequestLength="52428800 " executionTimeout="360000"/>
26 26
     <httpModules>
27 27
       <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
28 28
     </httpModules>