李昊 %!s(int64=4) %!d(string=hai) anos
pai
achega
1c708b62ae

+ 2 - 2
gx_api/GxPress/Service/GxPress.Service.Implement/Middle/MiddleService.cs

@@ -552,7 +552,7 @@ namespace GxPress.Service.Implement.Middle
             if (request.TypeId == -AllTypeConst.Note.GetHashCode())
                 query.WhereIn(nameof(Entity.Middle.Middle.RoleId), new List<int> { 1, 3 });
             if (request.TypeId == AllTypeConst.Note.GetHashCode())
-                query.WhereIn(nameof(Entity.Middle.Middle.RoleId), new List<int> { 1 });
+                query.WhereIn(nameof(Entity.Middle.Middle.RoleId), new List<int> { 2 });
             var middles = await _middleRepository.FindAsync(query.OrderByDesc(nameof(Entity.Middle.Middle.IsSystemDefault), nameof(Entity.Middle.Middle.IsTop), nameof(Entity.Middle.Middle.Sort), nameof(Entity.Middle.Middle.LastModifiedDate)));
             List<MiddleSearchFolderResult> result = new List<MiddleSearchFolderResult>();
             foreach (var item in middles)
@@ -606,7 +606,7 @@ namespace GxPress.Service.Implement.Middle
             if (request.TypeId == -AllTypeConst.Note.GetHashCode())
                 query.WhereIn(nameof(Entity.Middle.Middle.RoleId), new List<int> { 1, 3 });
             if (request.TypeId == AllTypeConst.Note.GetHashCode())
-                query.WhereIn(nameof(Entity.Middle.Middle.RoleId), new List<int> { 1 });
+                query.WhereIn(nameof(Entity.Middle.Middle.RoleId), new List<int> { 2 });
             var middles = await _middleRepository.FindAsync(query.OrderByDesc(nameof(Entity.Middle.Middle.IsTop), nameof(Entity.Middle.Middle.Sort), nameof(Entity.Middle.Middle.LastModifiedDate)));
             var middle = await _middleRepository.GetMiddleAsync(Q.Where(nameof(Entity.Middle.Middle.Id), request.ParentId));
             var result = new MiddleSearchFolderByParendIsResult() { Name = middle == null ? "" : middle.FolderName };