fix 档案字段调整

This commit is contained in:
2024-01-08 11:35:15 +08:00
parent dc3f22ac0c
commit 2e300811d5
2 changed files with 30 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
using SqlSugar;
using Dlhis.Entity.Basic.Enums;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Basic.Entity;
@@ -71,8 +73,8 @@ public class GainfoEntity : SugarBaseEntity
/// <summary>
/// 性别
/// </summary>
[SugarColumn(ColumnDescription = "性别")]
public string Gender { get; set; }
[SugarColumn(ColumnDescription = "性别", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public GenderEnumType Gender { get; set; }
/// <summary>
/// 生日

View File

@@ -0,0 +1,25 @@
using System.ComponentModel;
namespace Dlhis.Entity.Basic.Enums;
[Description("性别类型")]
public enum GenderEnumType
{
/// <summary>
/// 女性
/// </summary>
[Description("女性")]
Female = 0,
/// <summary>
/// 男性
/// </summary>
[Description("男性")]
Male = 1,
/// <summary>
/// 未知
/// </summary>
[Description("未知")]
Unknown = 99,
}