From 2fdc4d24f1274c82f0e9dc46f2aa89bfd87e0226 Mon Sep 17 00:00:00 2001 From: cheche <717840555@qq.com> Date: Wed, 28 Feb 2024 16:09:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=A1=A3=E6=A1=88=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Response/GainfoDetailResponse.cs | 6 ++++++ .../Organization/Services/Implements/GainfoService.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Organization/Response/GainfoDetailResponse.cs b/Src/Dlhis.Basic/Organization/Response/GainfoDetailResponse.cs index 7753e699..6ffc95a7 100644 --- a/Src/Dlhis.Basic/Organization/Response/GainfoDetailResponse.cs +++ b/Src/Dlhis.Basic/Organization/Response/GainfoDetailResponse.cs @@ -1,4 +1,5 @@ using Dlhis.Entity.Basic.Enums; +using Kurisu.AspNetCore.Utils.Extensions; namespace Dlhis.Basic.Organization.Response; @@ -49,6 +50,11 @@ public class GainfoDetailResponse /// public GenderEnumType Gender { get; set; } + /// + /// 性别描述 + /// + public string GenderCN => Gender.GetDescription(); + /// /// 身份证籍贯 /// diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index 05530061..a9a6c726 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -389,7 +389,7 @@ public class GainfoService : IGainfoService Degree = ga.Degree, Werks = ga.Werks, CostId = ga.CostId, - Marital = ga.Marital, + Marital = ga.Marital== "Single" ? "未婚":"已婚", CountryName = type2.Display, NationName = type3.Display, ClassName = type4.Display,