|
|
|
@ -4,6 +4,8 @@ using NPOI.HSSF.UserModel; |
|
|
|
|
using NPOI.SS.UserModel; |
|
|
|
|
using NPOI.SS.Util; |
|
|
|
|
using NPOI.XSSF.UserModel; |
|
|
|
|
using System.Drawing.Drawing2D; |
|
|
|
|
using Tiobon.Core.IServices; |
|
|
|
|
using static Tiobon.Core.DataAccess.ReportHelper; |
|
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
|
@ -285,7 +287,7 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud |
|
|
|
|
.AnyAsync(x => x.StaffId == entity.StaffId)) |
|
|
|
|
throw new Exception("该用户存在相同学习记录!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
entity.StudyStatus = "HasFinish"; |
|
|
|
|
|
|
|
|
|
var snap = await Db.Queryable<Ghre_CourseSnap>().FirstAsync(x => x.CourseId == entity.CourseId); |
|
|
|
@ -1681,6 +1683,17 @@ WHERE A.Id = '{id}'"; |
|
|
|
|
StudyStatus = DIC_STUDY_RECORD_STUDY_STATUS.NO_JOIN, |
|
|
|
|
ExamId = exam?.Id |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (exam != null) |
|
|
|
|
{ |
|
|
|
|
var insertStaff = new Ghre_ExamStaff() |
|
|
|
|
{ |
|
|
|
|
ExamId = exam?.Id, |
|
|
|
|
StaffId = staffId, |
|
|
|
|
Source = DIC_EXAM_STAFF_SOURCE.MANUAL_ELECTIVE |
|
|
|
|
}; |
|
|
|
|
await Db.Insertable(insertStaff).ExecuteReturnSnowflakeIdAsync(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return ServiceResult.OprateSuccess("加入成功!"); |
|
|
|
|
} |
|
|
|
|