|
|
|
@ -458,7 +458,8 @@ public class Ghre_OpenClassServices : BaseServices<Ghre_OpenClass, Ghre_OpenClas |
|
|
|
|
ScoreRule = entity.ScoreRule, |
|
|
|
|
StudyFinishedRule = entity.StudyFinishedRule, |
|
|
|
|
IsViewResult = entity.IsViewResult, |
|
|
|
|
IsAfterViewResultRetake = entity.IsAfterViewResultRetake |
|
|
|
|
IsAfterViewResultRetake = entity.IsAfterViewResultRetake, |
|
|
|
|
DataBelongID = entity.DataBelongID, |
|
|
|
|
}; |
|
|
|
|
var examId = await Db.Insertable(exam).ExecuteReturnSnowflakeIdAsync(); |
|
|
|
|
|
|
|
|
@ -474,12 +475,24 @@ public class Ghre_OpenClassServices : BaseServices<Ghre_OpenClass, Ghre_OpenClas |
|
|
|
|
{ |
|
|
|
|
ExamNo = entity.OpenClassNo, |
|
|
|
|
ExamName = entity.OpenClassName, |
|
|
|
|
UseDefaultCoverImage = true, |
|
|
|
|
BeginTime = entity.ExamStartTime, |
|
|
|
|
EndTime = entity.ExamEndTime, |
|
|
|
|
Status = "Released", |
|
|
|
|
LinkType = entity.LinkType == "Course" ? "CourseId" : "CourseSceneId", |
|
|
|
|
CourseId = entity.LinkType == "Course" ? entity.LinkId : null, |
|
|
|
|
CourseSceneId = entity.LinkType == "CourseScene" ? entity.LinkId : null, |
|
|
|
|
ExamPaperId = entity.ExamPaperId |
|
|
|
|
ExamPaperId = entity.ExamPaperId, |
|
|
|
|
OpenClassId = entity.Id, |
|
|
|
|
IsRequireStudy = entity.IsRequireStudy, |
|
|
|
|
PlanId = entity.PlanId, |
|
|
|
|
OnlineScorePercentage = entity.OnlineScorePercentage, |
|
|
|
|
OfflineScorePercentage = entity.OfflineScorePercentage, |
|
|
|
|
ScoreRule = entity.ScoreRule, |
|
|
|
|
StudyFinishedRule = entity.StudyFinishedRule, |
|
|
|
|
IsViewResult = entity.IsViewResult, |
|
|
|
|
IsAfterViewResultRetake = entity.IsAfterViewResultRetake, |
|
|
|
|
DataBelongID = entity.DataBelongID, |
|
|
|
|
}) |
|
|
|
|
.Where(it => it.Id == entity.ExamId) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|