Browse Source

添加备注放回

yuanrf 1 year ago
parent
commit
a8150459f6

+ 6 - 2
OASystem/OASystem.Infrastructure/Repositories/System/SystemMenuPermissionRepository.cs

@@ -108,6 +108,7 @@ namespace OASystem.Infrastructure.Repositories.System
                     result.Code = 0;
                     result.Msg = "成功!";
                     var arr = new ArrayList();
+                    var setDataArr = _sqlSugar.SqlQueryable<Sys_SetData>("select * from Sys_SetData ssd WHERE  IsDel  = 0 AND STid = 5").ToList();
 
                     if (PortType == 1)
                     {
@@ -117,13 +118,15 @@ namespace OASystem.Infrastructure.Repositories.System
                             var modul = item.FirstOrDefault();
                             if (modul != null)
                             {
+                                string Remark = setDataArr.Find(x => x.Id == modul.modulid)?.Remark;
                                 if (modul.modulName.Contains("主页"))
                                 {
                                     arr.Insert(0, new
                                     {
                                         modulName = modul.modulName,
                                         modulid = modul.modulid,
-                                        pageList = item
+                                        pageList = item,
+                                        Remark
                                     });
                                 }
                                 else
@@ -132,7 +135,8 @@ namespace OASystem.Infrastructure.Repositories.System
                                     {
                                         modulName = modul.modulName,
                                         modulid = modul.modulid,
-                                        pageList = item
+                                        pageList = item,
+                                        Remark
                                     });
                                 }
                             }