From ca2bb8cccc30be81fa4fd25a6cc0098d48520993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Wed, 6 Dec 2023 09:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=97=B6=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=80=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/LawyerArchivesController.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 1ec9a7f..37475d9 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -2145,10 +2145,36 @@ namespace _24Hour.Controllers.Common var editentity = lawyerindb.FirstOrDefault(x => x.cardId == item.cardId); if (editentity == null) { + if (item?.cardId.Length >= 18) + { + var sexdd = StringExtension.GetGenderByIdCard(item?.cardId); + if (sexdd) + { + item.sex = 0; + } + else + { + item.sex = 1; + } + } addlist.Add(item); } else { + if (item?.cardId.Length>=18) + { + var sexdd = StringExtension.GetGenderByIdCard(item?.cardId); + if (sexdd) + { + editentity.sex = 0; + } + else + { + editentity.sex = 1; + } + } + + editentity.unitCode = _userdata.unitCode; editentity.phone = item.phone; editentity.phone = item.phone;