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; }