From 28390abaa591a4d2782bdcbe740e9c1a8e12b7c0 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 6 Mar 2024 22:19:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20tenantId=E6=89=8B=E5=8A=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Device/Services/Implements/DeviceGroupService.cs | 4 +++- .../Organization/Services/Implements/GainfoGroupService.cs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Device/Services/Implements/DeviceGroupService.cs b/Src/Dlhis.Basic/Device/Services/Implements/DeviceGroupService.cs index a6ed9c39..3c8797d6 100644 --- a/Src/Dlhis.Basic/Device/Services/Implements/DeviceGroupService.cs +++ b/Src/Dlhis.Basic/Device/Services/Implements/DeviceGroupService.cs @@ -104,7 +104,9 @@ public class DeviceGroupService : IDeviceGroupService var entities = request.DeviceCodes.Select(x => new DeviceGroupRelationshipEntity { GroupCode = request.GroupCode, - DeviceCode = x + DeviceCode = x, + + TenantId = _currentUser.GetStringTenantId(), }).ToList(); diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoGroupService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoGroupService.cs index 5f0c3267..14092a2c 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoGroupService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoGroupService.cs @@ -104,7 +104,8 @@ public class GainfoGroupService : IGainfoGroupService var entities = request.UserNos.Select(x => new GainfoGroupRelationshipEntity { GroupCode = request.GroupCode, - UserNo = x + UserNo = x, + }).ToList();