From 47cb34d4c6b0903cc493c2ae65058f07a0b7f86d Mon Sep 17 00:00:00 2001 From: Kurris <791444095@qq.com> Date: Mon, 27 May 2024 09:20:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A1=A5=E5=85=85=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs b/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs index df3b9865..83f7f086 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/SyncOriginCardInfoJob.cs @@ -50,6 +50,8 @@ public class SyncOriginCardInfoJob : BaseJob }) .ToPageListAsync(1, 5000); + Logger.LogInformation("获取待上传考勤记录数:{count}", requests.Count); + if (requests.Any()) { foreach (var items in requests.Chunk(500)) @@ -68,12 +70,12 @@ public class SyncOriginCardInfoJob : BaseJob } else { - Logger.LogError(r.OMS); + Logger.LogError("考勤上传异常:{message}", r.OMS); } } catch (Exception ex) { - Logger.LogError(ex, "考勤分配上传异常:{message}", ex.Message); + Logger.LogError(ex, "考勤上传异常:{message}", ex.Message); } } }