lihao 4 years ago
parent
commit
b598b91da2

+ 0 - 2
gx_api/GxPress/Api/GxPress.Api/Startup.cs

@@ -3,9 +3,7 @@ using GxPress.Api.ServiceExtensions;
 using GxPress.Common.AppOptions;
 using GxPress.Common.Tools;
 using GxPress.Service.Implement;
-using GxPress.Service.Implement.PlatformData;
 using GxPress.Service.Interface;
-using GxPress.Service.Interface.PlatformData;
 using Microsoft.AspNetCore.Builder;
 using Microsoft.AspNetCore.Hosting;
 using Microsoft.AspNetCore.Http;

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

@@ -464,7 +464,7 @@ namespace GxPress.Service.Implement.Middle
                         //获取父级子集集合
                         var ids = await _middleRepository.GetAllMiddleChildrenByParentIdAsync(request.Ids.ToList(), request.Ids.ToList());
                         //修改
-                        await _middleRepository.UpdateAsync(Q.Set(nameof(Entity.Middle.Middle.ParentId), request.ParentId).Set(nameof(Entity.Middle.Middle.RoleId), middle.RoleId).WhereIn(nameof(Entity.Middle.Middle.Id), request.Ids));
+                        await _middleRepository.UpdateAsync(Q.Set(nameof(Entity.Middle.Middle.ParentId), request.ParentId).Set(nameof(Entity.Middle.Middle.RoleId), middle.RoleId).WhereIn(nameof(Entity.Middle.Middle.Id), ids));
                         //修改共享
                         await _middleRepository.UpdateAsync(Q.Set(nameof(Entity.Middle.Middle.MiddleSonId), middle.MiddleSonId).WhereIn(nameof(Entity.Middle.Middle.Id), ids));
                     }