From ec08aa656c4ce13cd7e3cdd86f0040b8ee361ef4 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Mon, 19 Aug 2024 15:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E4=BB=B6=E6=98=8E=E7=BB=86=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=AF=B9=E5=BA=94=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Model/View/Ghre/Ghre_CourseWare.Dto.View.cs | 2 ++ Tiobon.Core.Services/Ghre/Ghre_CourseWareServices.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tiobon.Core.Model/View/Ghre/Ghre_CourseWare.Dto.View.cs b/Tiobon.Core.Model/View/Ghre/Ghre_CourseWare.Dto.View.cs index bda4e806..32396dbd 100644 --- a/Tiobon.Core.Model/View/Ghre/Ghre_CourseWare.Dto.View.cs +++ b/Tiobon.Core.Model/View/Ghre/Ghre_CourseWare.Dto.View.cs @@ -38,4 +38,6 @@ public class Ghre_CourseWareDto : Ghre_CourseWare public List Attachments { get; set; } public string StudyDuration { get; set; } public string SourceLabel { get; set; } + + public List Courses { get; set; } } diff --git a/Tiobon.Core.Services/Ghre/Ghre_CourseWareServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CourseWareServices.cs index ebdcd7ff..3e4c51f3 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CourseWareServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CourseWareServices.cs @@ -85,6 +85,8 @@ public class Ghre_CourseWareServices : BaseServices(); result.result.DT_TableDataT1[0].Attachments = await _ghre_CourseWareAttachmentServices.Query(x => x.CourseWareId == body.id); + var IDS = result.result.DT_TableDataT1[0].CourseIds2; + result.result.DT_TableDataT1[0].Courses = await _ghre_CourseServices.Query(x => IDS.Contains(x.Id)); if (body.doType == "Copy") {