From dd2b8ce9ca11afa63e2262630d4ca5e034936692 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Thu, 6 Jun 2024 13:21:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E8=AE=B0=E5=BD=95=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=B0=83=E6=95=B4=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Base/Ghre/Ghre_ExamRecord.Dto.Base.cs | 6 ++++++ .../Ghre/Ghre_ExamRecordDetail.Dto.Base.cs | 18 +++++++++++++++--- .../Models/Ghre/Ghre_ExamRecord.cs | 6 ++++++ .../Models/Ghre/Ghre_ExamRecordDetail.cs | 16 ++++++++++++++-- 4 files changed, 41 insertions(+), 5 deletions(-) diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecord.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecord.Dto.Base.cs index 9ddc23a7..90de5956 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecord.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecord.Dto.Base.cs @@ -48,6 +48,12 @@ namespace Tiobon.Core.Model.Models [Display(Name = "Score"), Description("得分"), Column(TypeName = "decimal(20,2)")] public decimal? Score { get; set; } + /// + /// 调整得分 + /// + [Display(Name = "AdjustScore"), Description("调整得分"), Column(TypeName = "decimal(20,2)")] + public decimal? AdjustScore { get; set; } + /// /// 开始答题时间 /// diff --git a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecordDetail.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecordDetail.Dto.Base.cs index 969bd652..3ebaf504 100644 --- a/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecordDetail.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghre/Ghre_ExamRecordDetail.Dto.Base.cs @@ -13,9 +13,10 @@ *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ *│ 作者:SimonHsiao │ *└──────────────────────────────────┘ -*/ +*/ using System.ComponentModel; using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; namespace Tiobon.Core.Model.Models { @@ -34,8 +35,7 @@ namespace Tiobon.Core.Model.Models /// /// 答题记录ID /// - [Display(Name = "ExamRecordId"), Description("答题记录ID"), MaxLength(10, ErrorMessage = "答题记录ID 不能超过 10 个字符")] - public string ExamRecordId { get; set; } + public long? ExamRecordId { get; set; } /// /// 题目ID @@ -58,6 +58,18 @@ namespace Tiobon.Core.Model.Models [Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(32, ErrorMessage = "答案内容 不能超过 32 个字符")] public string AnswerContent { get; set; } + /// + /// 得分 + /// + [Display(Name = "Score"), Description("得分"), Column(TypeName = "decimal(20,2)")] + public decimal? Score { get; set; } + + /// + /// 调整得分 + /// + [Display(Name = "AdjustScore"), Description("调整得分"), Column(TypeName = "decimal(20,2)")] + public decimal? AdjustScore { get; set; } + /// /// 备注 /// diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecord.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecord.cs index 52f758a1..a365d10e 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecord.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecord.cs @@ -50,6 +50,12 @@ namespace Tiobon.Core.Model.Models [Display(Name = "Score"), Description("得分"), Column(TypeName = "decimal(20,2)")] public decimal? Score { get; set; } + /// + /// 调整得分 + /// + [Display(Name = "AdjustScore"), Description("调整得分"), Column(TypeName = "decimal(20,2)")] + public decimal? AdjustScore { get; set; } + /// /// 开始答题时间 /// diff --git a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecordDetail.cs b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecordDetail.cs index 3ce46140..65e7e50c 100644 --- a/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecordDetail.cs +++ b/Tiobon.Core.Model/Models/Ghre/Ghre_ExamRecordDetail.cs @@ -16,6 +16,7 @@ */ using System.ComponentModel; using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; using SqlSugar; namespace Tiobon.Core.Model.Models @@ -36,8 +37,7 @@ namespace Tiobon.Core.Model.Models /// /// 答题记录ID /// - [Display(Name = "ExamRecordId"), Description("答题记录ID"), MaxLength(10, ErrorMessage = "答题记录ID 不能超过 10 个字符")] - public string ExamRecordId { get; set; } + public long? ExamRecordId { get; set; } /// /// 题目ID @@ -60,6 +60,18 @@ namespace Tiobon.Core.Model.Models [Display(Name = "AnswerContent"), Description("答案内容"), MaxLength(32, ErrorMessage = "答案内容 不能超过 32 个字符")] public string AnswerContent { get; set; } + /// + /// 得分 + /// + [Display(Name = "Score"), Description("得分"), Column(TypeName = "decimal(20,2)")] + public decimal? Score { get; set; } + + /// + /// 调整得分 + /// + [Display(Name = "AdjustScore"), Description("调整得分"), Column(TypeName = "decimal(20,2)")] + public decimal? AdjustScore { get; set; } + /// /// 备注 ///