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,