|
|
|
@ -180,7 +180,7 @@ public class Ghre_CourseWareServices : BaseServices<Ghre_CourseWare, Ghre_Course |
|
|
|
|
x.StudyDuration = $"{x.Hours}小时{x.Minutes}分钟"; |
|
|
|
|
x.SourceLabel = await GetParaLabel("CourseWareSource", x.Source); |
|
|
|
|
x.Attachments = attachments.Where(a => a.CourseWareId == x.Id && a.AttachFileExtension != "http").OrderBy(x => x.SortNo).ToList(); |
|
|
|
|
x.Links = attachments.Where(x => x.AttachFileExtension == "http") |
|
|
|
|
x.Links = attachments.Where(a => a.CourseWareId == x.Id && a.AttachFileExtension == "http").OrderBy(x => x.SortNo) |
|
|
|
|
.Select(x => new Ghre_CourseWareLink() |
|
|
|
|
{ |
|
|
|
|
LinkName = x.AttachmentName, |
|
|
|
|