|
|
@ -11,6 +11,7 @@ using java.util; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using SqlSugar; |
|
|
|
using SqlSugar; |
|
|
|
|
|
|
|
using SqlSugar.Extensions; |
|
|
|
using System.Text; |
|
|
|
using System.Text; |
|
|
|
using static _24Hour.Controllers.Common.LawyerArchivesController; |
|
|
|
using static _24Hour.Controllers.Common.LawyerArchivesController; |
|
|
|
|
|
|
|
|
|
|
@ -55,6 +56,31 @@ namespace _24Hour.Controllers.Common |
|
|
|
res.IsSucceed = true; |
|
|
|
res.IsSucceed = true; |
|
|
|
return res; |
|
|
|
return res; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet("GetLawyerCardIdByArchivesId")] |
|
|
|
|
|
|
|
public async Task<Result<string>> GetLawyerCardIdByArchivesId(string jzid) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var res = new Result<string>(); |
|
|
|
|
|
|
|
try |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var lawyerid = await _db.Queryable<LawyerArchives>() |
|
|
|
|
|
|
|
.Where(x => x.jzlbxxId == jzid).Select(x => x.lawyerId) |
|
|
|
|
|
|
|
.FirstAsync(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var lawyer = await _db.Queryable<App_Sys_UserModel>() |
|
|
|
|
|
|
|
.Where(x => x.Id == lawyerid) |
|
|
|
|
|
|
|
.FirstAsync(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res.result = lawyer.cardId; |
|
|
|
|
|
|
|
res.IsSucceed = true; |
|
|
|
|
|
|
|
return res; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
res.result = string.Empty; |
|
|
|
|
|
|
|
return res; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// 获取卷宗下所有的文件信息 |
|
|
|
/// 获取卷宗下所有的文件信息 |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
@ -83,7 +109,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
return jzinfo.jzml.Where(ml => ml.fmlbh == juan.mlbh) |
|
|
|
return jzinfo.jzml.Where(ml => ml.fmlbh == juan.mlbh) |
|
|
|
.OrderBy(sx => sx.mlsxh) |
|
|
|
.OrderBy(sx => sx.mlsxh) |
|
|
|
.SelectMany(x => x.jzwj.OrderBy(q => q.wjsxh).ToList()) |
|
|
|
.SelectMany(x => x.jzwj.OrderBy(q => q.wjsxh).ToList()) |
|
|
|
.Select(r=>new { |
|
|
|
.Select(r => new |
|
|
|
|
|
|
|
{ |
|
|
|
order = r.wjsxh, |
|
|
|
order = r.wjsxh, |
|
|
|
fileid = r.Id, |
|
|
|
fileid = r.Id, |
|
|
|
filepath = r.jpgwjlj |
|
|
|
filepath = r.jpgwjlj |
|
|
@ -92,6 +119,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
}); |
|
|
|
}); |
|
|
|
var resultdata = data.Select(e => new |
|
|
|
var resultdata = data.Select(e => new |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
jzid = e.id, |
|
|
|
jzid = e.id, |
|
|
|
files = e?.files?.SelectMany(q => q).ToList() |
|
|
|
files = e?.files?.SelectMany(q => q).ToList() |
|
|
|
}).ToList(); |
|
|
|
}).ToList(); |
|
|
|