学习记录查询接口 新增返回考试状态

master
xiaochanghai 10 months ago
parent a6f57e27f7
commit 63026d9b06
  1. 1
      Tiobon.Core.Model/View/Ghre/Ghre_StudyRecord.Dto.View.cs
  2. 3
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -154,4 +154,5 @@ public class Ghre_StudyRecordDto : Ghre_StudyRecord
/// 考试状态 /// 考试状态
/// </summary> /// </summary>
public string ExamStatus { get; set; } public string ExamStatus { get; set; }
public bool? IsViewResult { get; set; } = false;
} }

@ -109,6 +109,9 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
if (entity.CourseType == "ManualInsert") if (entity.CourseType == "ManualInsert")
entity.UpdateYN = 1; entity.UpdateYN = 1;
if (entity.ExamStatus != "SystemEnd" && entity.ExamStatus.IsNotEmptyOrNull())
entity.IsViewResult = true;
}); });
return new ServicePageResult<Ghre_StudyRecordDto>(filter.pageNum, total, filter.pageSize, entitys); return new ServicePageResult<Ghre_StudyRecordDto>(filter.pageNum, total, filter.pageSize, entitys);

Loading…
Cancel
Save