fix 档案字段调整
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
using SqlSugar;
|
using Dlhis.Entity.Basic.Enums;
|
||||||
|
using SqlSugar;
|
||||||
|
using SqlSugar.DbConvert;
|
||||||
|
|
||||||
namespace Dlhis.Entity.Basic.Entity;
|
namespace Dlhis.Entity.Basic.Entity;
|
||||||
|
|
||||||
@@ -71,8 +73,8 @@ public class GainfoEntity : SugarBaseEntity
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 性别
|
/// 性别
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnDescription = "性别")]
|
[SugarColumn(ColumnDescription = "性别", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||||
public string Gender { get; set; }
|
public GenderEnumType Gender { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生日
|
/// 生日
|
||||||
|
|||||||
25
Src/Dlhis.Entity/Basic/Enums/GenderEnumType.cs
Normal file
25
Src/Dlhis.Entity/Basic/Enums/GenderEnumType.cs
Normal 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,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user