|
|
@ -328,6 +328,28 @@ namespace Tiobon.Core.Services |
|
|
|
x.DisableExamBtn = true; |
|
|
|
x.DisableExamBtn = true; |
|
|
|
if (x.FeedbackOrderId.IsNull()) |
|
|
|
if (x.FeedbackOrderId.IsNull()) |
|
|
|
x.ShowFeedbackBtn = false; |
|
|
|
x.ShowFeedbackBtn = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 处理学习进度 |
|
|
|
|
|
|
|
if (!x.ExamId.IsNull() && x.FeedbackOrderId.IsNull()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.WAIT) |
|
|
|
|
|
|
|
x.StudyProgress = x.StudyProgress / 2; |
|
|
|
|
|
|
|
else if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.EXAMING) |
|
|
|
|
|
|
|
x.StudyProgress = 75; |
|
|
|
|
|
|
|
else if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.EXAM_END) |
|
|
|
|
|
|
|
x.StudyProgress = 100; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!x.ExamId.IsNull() && !x.FeedbackOrderId.IsNull()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.WAIT) |
|
|
|
|
|
|
|
x.StudyProgress = x.StudyProgress / 3; |
|
|
|
|
|
|
|
else if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.EXAMING) |
|
|
|
|
|
|
|
x.StudyProgress = 45; |
|
|
|
|
|
|
|
else if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.EXAM_END) |
|
|
|
|
|
|
|
x.StudyProgress = 60; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return new ServicePageResult<Ghre_StudyRecordESS>(filter.pageNum, total, filter.pageSize, entitys); |
|
|
|
return new ServicePageResult<Ghre_StudyRecordESS>(filter.pageNum, total, filter.pageSize, entitys); |
|
|
|