From 06fc77ffae9ccdfde434a327e9f814ae7a23b032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Thu, 26 Oct 2023 10:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=E3=80=82=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0jzml=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/Controllers/Common/LawyerArchivesController.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 3bbe0c8..289080b 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -120,7 +120,6 @@ namespace _24Hour.Controllers.Common //insert _db.BeginTran(); - user.Id = Guid.NewGuid().ToString(); var num = await _db.Insertable(user).ExecuteCommandAsync(); _db.CommitTran(); if (num > 0) @@ -167,10 +166,6 @@ namespace _24Hour.Controllers.Common result.result = data; return result; } - public class DecodeData - { - public string EncodingString { get; set; } - } /// /// 新增阅卷信息 /// @@ -367,6 +362,7 @@ namespace _24Hour.Controllers.Common var insert = await AddArchivesInfo(dto); result.result = insert.result.Id; + result.IsSucceed = true; } catch (Exception ex) { @@ -386,10 +382,12 @@ namespace _24Hour.Controllers.Common try { var list = await _db.Queryable() - .Includes(x => x.jzml, q => q.jzwj) + .Includes(x => x.jzml.OrderBy(x=>x.mlsxh).ToList()) + .Includes(x=>x.jzml,x=>x.jzwj) .FirstAsync(x => x.Id == jzid); var data = mapper.Map(list); + result.result = data; result.IsSucceed = true; }