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