diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ActivitySchedule/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ActivitySchedule/Form.cshtml index d5265753b..d01833143 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ActivitySchedule/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ActivitySchedule/Form.cshtml @@ -5,8 +5,7 @@
时间*
- -
+
地点*
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ActivitySchedule/ActivityScheduleService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ActivitySchedule/ActivityScheduleService.cs index af00b6e04..09f7d778b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ActivitySchedule/ActivityScheduleService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ActivitySchedule/ActivityScheduleService.cs @@ -192,21 +192,20 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement } } } - + public string Scan(string scanParamUserid, string scanParamDutyid) { try { var result = ""; var DutyEntity = this.BaseRepository("CollegeMIS").FindEntity(a => a.Id == scanParamDutyid); - if (DutyEntity == null) + if (DutyEntity != null) { var signInEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.ASID == scanParamDutyid && x.SignInUserId == scanParamUserid); var date = DateTime.Now; DateTime BeginTime = DutyEntity.Date.ToDate(); - if (signInEntity != null) + if (signInEntity == null) { - if (date.Subtract(BeginTime).Duration().Minutes <= 5 && BeginTime > date) { var signInInster = new ActivityScheduleSienInEntity @@ -231,6 +230,10 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement result = "签到失败!!!签到已开始"; } } + else + { + result = "签到成功"; + } } else {