From 684e9ab16eb4c837c51724b9e866fb8625ae386d Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 25 Dec 2024 15:50:18 +0800 Subject: [PATCH] test . --- .../Organization/Services/Implements/GainfoUpdateService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs index 9a46d11a..2eff4f0c 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs @@ -178,9 +178,10 @@ public class GainfoUpdateService : IGainfoUpdateService if (item.isowner == "T") { - await _dbContext.InsertAsync(info); + var insertable = _dbContext.Client.Insertable(info); + _logger.LogWarning("sql:{sql}", insertable.ToSqlString()); + await insertable.ExecuteCommandAsync(); await _identityUserSyncService.SyncAccountAsync(info.Code, info.Name, info.IdNo, info.Factory); - await _gainfoPermissionService.ResetPermissionsAsync(info.No, DeviceTaskEnumType.Add, null, "入职生成"); } else