From 9245f516f44e54ffe188c5510d381c75fe2526ad Mon Sep 17 00:00:00 2001 From: Frane Date: Wed, 8 Sep 2021 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?20210908=20=E7=A6=BB=E8=81=8C=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E4=B8=8D=E4=B8=8A=E4=BC=A0=E5=AE=9E=E5=90=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/APIPersonService.cs | 9 ++++++--- SGGL/BLL/ZHGL/RealName/SynchroSetService.cs | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs index 7135a90c..643972e6 100644 --- a/SGGL/BLL/API/APIPersonService.cs +++ b/SGGL/BLL/API/APIPersonService.cs @@ -1092,9 +1092,12 @@ namespace BLL IdcardType = getPerson.IdcardType, IdcardNumber = getPerson.IdentityCard, }; - //// 插入当日记录表 - PersonInOutService.InsertPersonInOutNowNow(newNow); - // GetDataService.CorrectingPersonInOutNumber(projectId); + if (!getPerson.OutTime.HasValue || getPerson.OutTime > DateTime.Now) + { + //// 插入当日记录表 + PersonInOutService.InsertPersonInOutNowNow(newNow); + // GetDataService.CorrectingPersonInOutNumber(projectId); + } } } } diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs index a7f43b4c..51bbc3ea 100644 --- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs +++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs @@ -1177,8 +1177,8 @@ namespace BLL where x.IdcardNumber != null && x.IdcardType != null && x.ChangeTime.HasValue && (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0 && v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue - && p.IsCardNoOK ==true - && z.JTproCode != null + && p.IsCardNoOK ==true && z.JTproCode != null + && (!p.OutTime.HasValue || p.OutTime > x.ChangeTime) orderby x.ChangeTime descending select new {