Browse Source

修改login权限返回

yuanrf 1 year ago
parent
commit
8e05477b48

+ 1 - 1
OASystem/OASystem.Api/Controllers/SystemController.cs

@@ -1208,7 +1208,7 @@ namespace OASystem.API.Controllers
                     var uids = string.Join(',', users.Select(x => x.Id)).TrimEnd(',');
                     var RemoveUserAuthorityListAndTemp = _UserAuthorityRepository._sqlSugar.SqlQueryable<Sys_UserAuthority>($@"
                            select a.* from Sys_UserAuthority a, Sys_SetData b ,Sys_SystemMenuPermission c
-                           where a.SmId = c.Id and c.Mid = b.Id and uid in ({uids}) and  c.Mid =716 and IsTemp = 1                       
+                           where a.SmId = c.Id and c.Mid = b.Id and uid in ({uids}) and  c.Mid = {dto.modulId} and IsTemp = 1                       
                     ").ToList();
 
                     foreach (var user in users)

+ 2 - 2
OASystem/OASystem.Api/OAMethodLib/File/AsposeHelper.cs

@@ -116,8 +116,8 @@ namespace OASystem.API.OAMethodLib.File
                 //合并模版,相当于页面的渲染
                 doc.MailMerge.Execute(new[] { "PageCount" }, new object[] { doc.PageCount });
                 //保存合并后的文档
-                doc.Save(outputPath);
-                return outputPath; //返回下载地址
+                doc.Save(outputFileName);
+                return outputFileName; //返回下载地址
             }
             catch (Exception er)
             {