Browse Source

诊断是否启用

master
wxd 9 months ago
parent
commit
4416abb2b5
  1. 1
      src/Shentun.Peis.Application/Diagnosises/DiagnosisAppService.cs
  2. 2
      src/Shentun.Peis.Domain/Suggestions/Suggestion.cs
  3. 16268
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20250117025839_update_suggestion_length.Designer.cs
  4. 39
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20250117025839_update_suggestion_length.cs
  5. 4
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

1
src/Shentun.Peis.Application/Diagnosises/DiagnosisAppService.cs

@ -81,6 +81,7 @@ namespace Shentun.Peis.Diagnosises
CreatorName = EntityHelper.GetSurnameNoSql(userList, entity.CreatorId), CreatorName = EntityHelper.GetSurnameNoSql(userList, entity.CreatorId),
LastModifierName = EntityHelper.GetSurnameNoSql(userList, entity.LastModifierId), LastModifierName = EntityHelper.GetSurnameNoSql(userList, entity.LastModifierId),
SimpleCode = entity.SimpleCode, SimpleCode = entity.SimpleCode,
IsActive = entity.IsActive,
SuggestionName = entity.SuggestionName SuggestionName = entity.SuggestionName
}; };

2
src/Shentun.Peis.Domain/Suggestions/Suggestion.cs

@ -35,7 +35,7 @@ namespace Shentun.Peis.Models
/// 建议内容 /// 建议内容
/// </summary> /// </summary>
[Column("suggestion_content")] [Column("suggestion_content")]
[StringLength(200)]
[StringLength(2000)]
public string SuggestionContent { get; set; } = null!; public string SuggestionContent { get; set; } = null!;
[Column("display_order")] [Column("display_order")]
public int DisplayOrder { get; set; } public int DisplayOrder { get; set; }

16268
src/Shentun.Peis.EntityFrameworkCore/Migrations/20250117025839_update_suggestion_length.Designer.cs
File diff suppressed because it is too large
View File

39
src/Shentun.Peis.EntityFrameworkCore/Migrations/20250117025839_update_suggestion_length.cs

@ -0,0 +1,39 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class update_suggestion_length : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "suggestion_content",
table: "suggestion",
type: "character varying(2000)",
maxLength: 2000,
nullable: false,
comment: "建议内容",
oldClrType: typeof(string),
oldType: "character varying(200)",
oldMaxLength: 200,
oldComment: "建议内容");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "suggestion_content",
table: "suggestion",
type: "character varying(200)",
maxLength: 200,
nullable: false,
comment: "建议内容",
oldClrType: typeof(string),
oldType: "character varying(2000)",
oldMaxLength: 2000,
oldComment: "建议内容");
}
}
}

4
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -11081,8 +11081,8 @@ namespace Shentun.Peis.Migrations
b.Property<string>("SuggestionContent") b.Property<string>("SuggestionContent")
.IsRequired() .IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)")
.HasColumnName("suggestion_content") .HasColumnName("suggestion_content")
.HasComment("建议内容"); .HasComment("建议内容");

Loading…
Cancel
Save