From d9e9856eabed0aa4a4545e42006f6a4041a0697b Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sat, 9 Mar 2024 15:04:31 +0800 Subject: [PATCH] fix job --- .../SyncSapInfo/Job/SyncOriginCardInfoJob.cs | 2 +- Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncOriginCardInfoJob.cs b/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncOriginCardInfoJob.cs index f5b0c667..b6b7c990 100644 --- a/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncOriginCardInfoJob.cs +++ b/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncOriginCardInfoJob.cs @@ -80,7 +80,7 @@ public class SyncOriginCardInfoJob } catch (Exception ex) { - _logger.LogError("上传考勤记录失败:", ex.Message); + _logger.LogError("上传考勤记录失败:{message}", ex.Message); } finally { diff --git a/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs b/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs index 5b265e6a..63465c5e 100644 --- a/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs +++ b/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs @@ -126,7 +126,7 @@ public class SyncPersonJob var info = new GainfoEntity { - No = item.guestno, + No = Guid.NewGuid().ToString(), SapNo = item.ano, Type = item.@class, Name = item.gname,