|
|
@ -127,6 +127,28 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud |
|
|
|
else entity.ResultValidPeriod = "长期"; |
|
|
|
else entity.ResultValidPeriod = "长期"; |
|
|
|
entity.DataBelongName = await GetDataBelongName(entity.DataBelongID); |
|
|
|
entity.DataBelongName = await GetDataBelongName(entity.DataBelongID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (entity.ExamRecordId != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var Groups = await Db.Queryable<Ghre_ExamRecordGroup>() |
|
|
|
|
|
|
|
.OrderByDescending(x => x.ExamTime) |
|
|
|
|
|
|
|
.Where(x => x.ExamRecordId == entity.ExamRecordId) |
|
|
|
|
|
|
|
.Select(x => new |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GroupId = x.Id, |
|
|
|
|
|
|
|
x.ExamRecordId, |
|
|
|
|
|
|
|
x.ExamTime, |
|
|
|
|
|
|
|
x.Score |
|
|
|
|
|
|
|
}).ToListAsync(); |
|
|
|
|
|
|
|
entity.Groups = Groups |
|
|
|
|
|
|
|
.Select(x => new ExamGroup() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GroupId = x.GroupId, |
|
|
|
|
|
|
|
ExamRecordId = x.ExamRecordId, |
|
|
|
|
|
|
|
ExamTime = x.ExamTime.ObjToString() + (x.Score != null ? $"得分:{x.Score}" : ""), |
|
|
|
|
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
entitys[i] = entity; |
|
|
|
entitys[i] = entity; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -222,7 +244,6 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud |
|
|
|
|
|
|
|
|
|
|
|
if (entity.ExamRecordId != null) |
|
|
|
if (entity.ExamRecordId != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
var Groups = await Db.Queryable<Ghre_ExamRecordGroup>() |
|
|
|
var Groups = await Db.Queryable<Ghre_ExamRecordGroup>() |
|
|
|
.OrderByDescending(x => x.ExamTime) |
|
|
|
.OrderByDescending(x => x.ExamTime) |
|
|
|
.Where(x => x.ExamRecordId == entity.ExamRecordId) |
|
|
|
.Where(x => x.ExamRecordId == entity.ExamRecordId) |
|
|
|