From d39ef8e7d058416688553973277510976d1329bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Mon, 18 Dec 2023 14:57:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=B0=86=E5=B7=B2=E5=88=A0=E9=99=A4=E7=9A=84=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E4=BF=A1=E6=81=AF=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/Controllers/Common/LawyerArchivesController.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 8051975..39890aa 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -29,12 +29,14 @@ using System.Data; using System.IO.Compression; using System.Linq; using System.Net.WebSockets; +using System.Runtime.InteropServices; using System.Text; using static _24Hour.TwentySystemProxyClient; using static com.sun.tools.@internal.xjc.reader.xmlschema.bindinfo.BIConversion; using static NPOI.HSSF.Util.HSSFColor; using Exception = System.Exception; using Path = System.IO.Path; +using StringBuilder = System.Text.StringBuilder; using User = Elight.Utility.User; namespace _24Hour.Controllers.Common @@ -1810,6 +1812,7 @@ namespace _24Hour.Controllers.Common userim.departmentPhoto = departments; userim.unitCode = _userdata.unitCode; userim.identity = "律师"; + userim.IsDeleted = 0; _db.BeginTran(); var num = await _db.Insertable(userim).ExecuteCommandAsync(); _db.CommitTran(); @@ -1821,6 +1824,7 @@ namespace _24Hour.Controllers.Common user.departmentPhoto = departments; user.unitCode = _userdata.unitCode; user.identity = "律师"; + user.IsDeleted = 0; _db.BeginTran(); var num = await _db.Updateable(user) .UpdateColumns(x => new @@ -1829,7 +1833,8 @@ namespace _24Hour.Controllers.Common x.identityphoto, x.departmentPhoto, x.unitCode, - x.identity + x.identity, + x.IsDeleted }) .IgnoreColumns(ignoreAllNullColumns: true) .ExecuteCommandAsync(); @@ -1908,6 +1913,7 @@ namespace _24Hour.Controllers.Common svc.relationshipProofPhoto = relationshipProofPhotos; svc.otherPhoto = otherPhotos; svc.IsAssigned = false; + svc.IsDeleted = 0; _db.BeginTran(); var num = await _db.Updateable(svc) .UpdateColumns(x => new @@ -1916,7 +1922,8 @@ namespace _24Hour.Controllers.Common x.createuserId, x.relationshipProofPhoto, x.otherPhoto, - x.legalAidPhoto + x.legalAidPhoto, + x.IsDeleted }) .IgnoreColumns(ignoreAllNullColumns: true) .ExecuteCommandAsync();