From f9e113a6d5731eb2fa168c02bd48671c647c3075 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 23 Oct 2025 11:51:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Jobs/RemoveFacePictureAfterResignedJob.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.ScheduledTask/Jobs/RemoveFacePictureAfterResignedJob.cs b/Src/Dlhis.ScheduledTask/Jobs/RemoveFacePictureAfterResignedJob.cs index d13fd996..4f596402 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/RemoveFacePictureAfterResignedJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/RemoveFacePictureAfterResignedJob.cs @@ -1,5 +1,6 @@ using Dlhis.Entity.Basic.Entity; using Dlhis.ScheduledTask.Attributes; +using Kurisu.AspNetCore.Utils.Extensions; using SqlSugar; namespace Dlhis.ScheduledTask.Jobs; @@ -13,7 +14,7 @@ public class RemoveFacePictureAfterResignedJob : BaseJob protected override async Task RunAsync(IServiceProvider serviceProvider) { - var start = new DateTime(2024, 1, 1); + var start = DateTime.Now.AddMonths(-1).Date; var now = DateTime.Now.AddDays(-7).Date; var leaveUserCodes = await DbContext.Queryable() @@ -33,6 +34,8 @@ public class RemoveFacePictureAfterResignedJob : BaseJob await faceDbContext.Deleteable() .Where(x => leaveUserCode.Contains(x.UserCode)) .ExecuteCommandAsync(); + + Logger.LogInformation("移除人脸图片,工号列表:{codes}", leaveUserCode.Join(",")); } } } \ No newline at end of file