Просмотр исходного кода

app2.0 会议预计时间开始后不允许签到

临城职教中职
ndbs 2 лет назад
Родитель
Сommit
c6edce6bd5
1 измененных файлов: 6 добавлений и 2 удалений
  1. +6
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MeetingSignInRecord/MeetingSignInRecordService.cs

+ 6
- 2
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<MeetingSignInRecordEntity>(a =>
a.MeetID == scanParamMeetid && a.ParticipantID == scanParamUserid);
if (meetEntity != null)
var date = DateTime.Now;
var meetEntityList = this.BaseRepository("CollegeMIS")
.FindEntity<MeetingManagementEntity>(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;

}


Загрузка…
Отмена
Сохранить