From c6edce6bd5cd8321c868238058e5d98cd44f1d35 Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 30 Aug 2022 17:40:36 +0800 Subject: [PATCH] =?UTF-8?q?app2.0=20=E4=BC=9A=E8=AE=AE=E9=A2=84=E8=AE=A1?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=BC=80=E5=A7=8B=E5=90=8E=E4=B8=8D=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MeetingSignInRecord/MeetingSignInRecordService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs index c591eebf1..4252362ac 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs @@ -224,14 +224,18 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement var meetEntity = this.BaseRepository("CollegeMIS") .FindEntity(a => a.MeetID == scanParamMeetid && a.ParticipantID == scanParamUserid); - if (meetEntity != null) + var date = DateTime.Now; + var meetEntityList = this.BaseRepository("CollegeMIS") + .FindEntity(x => x.Id == scanParamMeetid); + var beginTime = meetEntityList.BeginTime; + if (meetEntityList != null && beginTime > date) { meetEntity.IsSignIn = true; meetEntity.SignInTime = DateTime.Now; this.BaseRepository("CollegeMIS").Update(meetEntity); result = true; - } + return result; }