优化 数据库模型
This commit is contained in:
parent
4276a2ba4a
commit
7075ec039d
|
|
@ -55,9 +55,10 @@ namespace Learn.Archives.Core.Model
|
|||
|
||||
/// <summary>
|
||||
/// 学科成绩
|
||||
/// <para>json字符串 <see cref=" Dictionary(SubjectEnum,decimal)"/></para>
|
||||
/// <para>数据库JSON字段!!!</para>
|
||||
/// </summary>
|
||||
public string SubjectDic { get; set; }
|
||||
[SugarColumn(IsJson = true, ColumnDataType = "varchar(800)")]
|
||||
public Dictionary<SubjectEnum, decimal>? SubjectDic { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using Learn.Archives.Core.Model.Interface;
|
||||
using Learn.Archives.Core.Model.Dto;
|
||||
using Learn.Archives.Core.Model.Interface;
|
||||
using SqlSugar;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Net;
|
||||
|
|
@ -35,16 +36,6 @@ namespace Learn.Archives.Core.Model
|
|||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 反馈问题数量
|
||||
/// </summary>
|
||||
public long FeedbackCount{ get; set; }
|
||||
/// <summary>
|
||||
/// 反馈问题已解决数量
|
||||
/// </summary>
|
||||
public long SolveFeedbackCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 赴校问题已解决
|
||||
/// </summary>
|
||||
|
|
@ -52,16 +43,16 @@ namespace Learn.Archives.Core.Model
|
|||
|
||||
/// <summary>
|
||||
/// 反馈问题
|
||||
/// <para>序列化类型<see cref="Dto.FeedbackQuestionsDto[]"/></para>
|
||||
/// <para>数据库JSON字段!!!</para>
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
|
||||
public string? FeedbackQuestions { get; set; }
|
||||
[SugarColumn(IsNullable = true, IsJson = true,ColumnDataType ="text")]
|
||||
public FeedbackQuestionsDto[]? FeedbackQuestions { get; set; }
|
||||
/// <summary>
|
||||
/// 解决方案的记录
|
||||
/// <para>序列化类型<see cref="Dto.SolutionRecordDto"/></para>
|
||||
/// <para>数据库JSON字段!!!</para>
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
|
||||
public string? SolutionRecord { get; set; }
|
||||
[SugarColumn(IsNullable = true, IsJson = true, ColumnDataType = "text")]
|
||||
public SolutionRecordDto? SolutionRecord { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -74,6 +65,17 @@ namespace Learn.Archives.Core.Model
|
|||
/// </summary>
|
||||
[SugarColumn(IsNullable = true, Length = 1000)]
|
||||
public string? ClassMeeting { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 反馈问题数量
|
||||
/// </summary>
|
||||
public long FeedbackCount => FeedbackQuestions?.Count() ?? 0;
|
||||
/// <summary>
|
||||
/// 反馈问题已解决数量
|
||||
/// </summary>
|
||||
public long SolveFeedbackCount => FeedbackQuestions?
|
||||
.Count(s => s.EndTime != null) ?? 0;
|
||||
|
||||
/// <summary>
|
||||
/// 开展过座谈
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,5 @@ namespace Learn.Archives.Core.Model
|
|||
/// </summary>
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
//todo 与产品确认赴校信息的流程来设计表
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue