From 0c7ae57041040104961aa66654e9abd9cb20ded3 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Mon, 6 Jan 2025 14:15:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20No=E4=BD=BF=E7=94=A8=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoUpdateService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs index 0724e80c..77538da1 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs @@ -285,15 +285,14 @@ public class GainfoUpdateService : IGainfoUpdateService }).Where(x => x.Code == item.ename).ExecuteCommandAsync(); await _identityUserSyncService.SyncAccountAsync(gainfo.Code, gainfo.Name, gainfo.IdNo, factory); - - await _gainfoPermissionService.ResetPermissionsAsync(info.No, DeviceTaskEnumType.Update, null, "人员数据变更"); + await _gainfoPermissionService.ResetPermissionsAsync(gainfo.No, DeviceTaskEnumType.Update, null, "人员数据变更"); } else { await _dbContext.Client.Ado.BeginTranAsync(); try { - await _gainfoPermissionService.ResetPermissionsAsync(info.No, DeviceTaskEnumType.Delete, null, "人员离职生成"); + await _gainfoPermissionService.ResetPermissionsAsync(gainfo.No, DeviceTaskEnumType.Delete, null, "人员离职生成"); //先写入离职表 gainfo.IdentityUserId = (int)gainfo.Id; //记录原始id