diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml index 262bc0fb..2da4e7cd 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -1970,6 +1970,11 @@ 排序号 + + + 分值 + + 备注 @@ -2065,6 +2070,11 @@ 得分 + + + 调整得分 + + 开始答题时间 @@ -2190,6 +2200,16 @@ 答案内容 + + + 得分 + + + + + 调整得分 + + 备注 @@ -5208,6 +5228,11 @@ 排序号 + + + 分值 + + 备注 @@ -5303,6 +5328,11 @@ 得分 + + + 调整得分 + + 开始答题时间 @@ -5428,6 +5458,16 @@ 答案内容 + + + 得分 + + + + + 调整得分 + + 备注 diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaperQuestion.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaperQuestion.Dto.Base.cs index f939fa19..a0a0b8cb 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaperQuestion.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamPaperQuestion.Dto.Base.cs @@ -16,6 +16,7 @@ */ using System.ComponentModel; using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; namespace Tiobon.Core.Model.Models { @@ -47,6 +48,12 @@ namespace Tiobon.Core.Model.Models /// public int? TaxisNo { get; set; } + /// + /// 分值 + /// + [Display(Name = "Score"), Description("分值"), Column(TypeName = "decimal(20,2)")] + public decimal? Score { get; set; } + /// /// 备注 /// diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaperQuestion.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaperQuestion.cs index 69d540f0..8e353958 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaperQuestion.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamPaperQuestion.cs @@ -16,6 +16,7 @@ */ using System.ComponentModel; using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; using SqlSugar; namespace Tiobon.Core.Model.Models @@ -49,6 +50,12 @@ namespace Tiobon.Core.Model.Models /// public int? TaxisNo { get; set; } + /// + /// 分值 + /// + [Display(Name = "Score"), Description("分值"), Column(TypeName = "decimal(20,2)")] + public decimal? Score { get; set; } + /// /// 备注 /// diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs index bf07eff1..3ef854f9 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamPaperServices.cs @@ -625,6 +625,12 @@ namespace Tiobon.Core.Services QuestionId = x.QuestionId, ConfigId = x.parentId, }).ToList(); + + questions.ForEach(x => + { + x.Score = configs.FirstOrDefault(o => o.Id == x.ConfigId)?.Score; + }); + await _ghre_ExamPaperQuestionServices.Add(questions); await Db.Ado.CommitTranAsync(); @@ -678,6 +684,11 @@ delete from Ghre_ExamPaperQuestion WHERE ExamPaperId='{id}';"); QuestionId = x.QuestionId, ConfigId = x.parentId, }).ToList(); + questions.ForEach(x => + { + x.Score = configs.FirstOrDefault(o => o.Id == x.ConfigId)?.Score; + }); + await _ghre_ExamPaperQuestionServices.Add(questions); await Db.Ado.CommitTranAsync(); diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index 262bc0fb..2da4e7cd 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -1970,6 +1970,11 @@ 排序号 + + + 分值 + + 备注 @@ -2065,6 +2070,11 @@ 得分 + + + 调整得分 + + 开始答题时间 @@ -2190,6 +2200,16 @@ 答案内容 + + + 得分 + + + + + 调整得分 + + 备注 @@ -5208,6 +5228,11 @@ 排序号 + + + 分值 + + 备注 @@ -5303,6 +5328,11 @@ 得分 + + + 调整得分 + + 开始答题时间 @@ -5428,6 +5458,16 @@ 答案内容 + + + 得分 + + + + + 调整得分 + + 备注