From 453234095e3365a546420f7a783ca689e9ae3860 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Wed, 28 Aug 2024 16:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=85=E4=BF=AE=E6=9F=A5=E8=AF=A2=E8=A1=A8?= =?UTF-8?q?=E3=80=81=E5=AD=A6=E5=88=86=E6=9F=A5=E8=AF=A2=20=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E5=A7=93=E5=90=8D=E5=B7=A5=E5=8F=B7=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs | 3 +++ Tiobon.Core.Services/Ghre/Ghre_CreditPointServices.cs | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs index 2ae5807c..c3796ef9 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs @@ -380,12 +380,15 @@ public class Ghre_CourseServices : BaseServices(); var courseClassIds = JsonConvert.DeserializeObject>(entity1.CourseClassId); var classs = await _ghre_CourseClassServices.Query(x => courseClassIds.Contains(x.Id)); entity1.CourseClass = string.Join("、", classs.Select(o => o.ClassName)); entity1.CourseClass1 = string.Join("、", classs.Select(o => o.ClassName + "(" + o.ClassNo + ")")); entity1.CourseId = id; + + var examPaper = await Db.Queryable().FirstAsync(x => x.LinkId == id && x.LinkType == "CourseId" && x.Status != Consts.DIC_COURSE_STATUS.DISABLED); await _ghre_CourseSnapServices.Add(entity1); } #endregion diff --git a/Tiobon.Core.Services/Ghre/Ghre_CreditPointServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CreditPointServices.cs index 7e362a6e..c25f8f0d 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CreditPointServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CreditPointServices.cs @@ -9,9 +9,6 @@ using SqlSugar; using Tiobon.Core.Common; using Tiobon.Core.Model; using Newtonsoft.Json; -using Microsoft.AspNetCore.Mvc; -using Tiobon.Core.Common.DB.Dapper; -using Tiobon.Core.Common.Helper; namespace Tiobon.Core.Services; @@ -34,7 +31,7 @@ public class Ghre_CreditPointServices : BaseServices