duhongyu 3 lat temu
rodzic
commit
63f33cc0bc

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

318
                 {
318
                 {
319
                     keywords = keywords.Replace("'", "");
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
             else
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
             List<Model.TreeModel> modelList = BindAssignTree(dt, "0", type);
327
             List<Model.TreeModel> modelList = BindAssignTree(dt, "0", type);
328
             if (modelList != null)
328
             if (modelList != null)

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

5097
                 if (ua != null)
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
                     Model.T_Wo_WorkOrder model = woBLL.GetModel(orderid);
5102
                     Model.T_Wo_WorkOrder model = woBLL.GetModel(orderid);
5102
                     var deptmodel = departmentBLL.GetModel(ua.F_DeptId);
5103
                     var deptmodel = departmentBLL.GetModel(ua.F_DeptId);
5103
                     if (deptmodel != null)
5104
                     if (deptmodel != null)

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

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

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

22
   </connectionStrings>
22
   </connectionStrings>
23
   <system.web>
23
   <system.web>
24
     <compilation debug="true" targetFramework="4.5"/>
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
     <httpModules>
26
     <httpModules>
27
       <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
27
       <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
28
     </httpModules>
28
     </httpModules>