Browse Source

统一卷宗查询格式,新增接口AddArchivesInfoByChildId

develop-lawyerExampaper
胡超1 2 years ago
parent
commit
13f6be3b83
  1. 40
      24Hour/Controllers/Common/LawyerArchivesController.cs
  2. 2
      24Hour/appsettings.json

40
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -356,21 +356,35 @@ namespace _24Hour.Controllers.Common
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("QueryFileFromtwenty")] [Route("QueryFileFromtwenty")]
public Task<Result<JZJBXXDto>> QueryFileFromtwenty(string bmsah) public Task<Result> QueryFileFromtwenty(string bmsah)
{ {
Result<JZJBXXDto> res = new Result<JZJBXXDto>();
if (bmsah == "安北检刑诉受[2023]433333333333号") if (bmsah == "安北检刑诉受[2023]433333333333号")
{ {
res.IsSucceed = true;
var a = GetInfo(); var a = GetInfo();
res.result = a; var data = new
{
id = a.jzbh,
lable = a.jzmc,
children = a?.jzml?.Select(x => new
{
id = x.mlbh,
lable = x.mlxsmc,
children = x.jzwj.Select(q => new
{
id = q.wjxh,
lable = q.wjxsmc,
filepath = q.jpgwjlj
})
})
};
result.IsSucceed = true;
result.result = data;
} }
else else
{ {
res.IsSucceed = false; result.IsSucceed = false;
} }
return Task.FromResult(res); return Task.FromResult(result);
} }
private JZJBXXDto GetInfo() private JZJBXXDto GetInfo()
{ {
@ -389,6 +403,17 @@ namespace _24Hour.Controllers.Common
return convert; return convert;
} }
/// <summary> /// <summary>
/// 上传已选中的第三级页码的id
/// </summary>
/// <param name="bmsah"></param>
/// <param name="ids"></param>
/// <returns></returns>
[HttpPost("AddArchivesInfoByChildId")]
public Task<Result> AddArchivesInfoByChildId(AddArchivesInfoInput input)
{
return Task.FromResult(result);
}
/// <summary>
/// 添加卷宗信息 /// 添加卷宗信息
/// </summary> /// </summary>
/// <param name="dto"></param> /// <param name="dto"></param>
@ -400,7 +425,6 @@ namespace _24Hour.Controllers.Common
Result<JZJBXXDto> res = new Result<JZJBXXDto>(); Result<JZJBXXDto> res = new Result<JZJBXXDto>();
try try
{ {
var data = mapper.Map<JZJBXX>(dto); var data = mapper.Map<JZJBXX>(dto);
var mls = dto.jzml.ToList(); var mls = dto.jzml.ToList();

2
24Hour/appsettings.json

@ -8,7 +8,7 @@
"AllowedHosts": "*", "AllowedHosts": "*",
"ConnectionStrings": { "ConnectionStrings": {
"DBType": "MySQL", "DBType": "MySQL",
"MySQLConnString": "server=192.168.0.251;Database=equipmentrearend;Uid=root;Pwd=sa@admin;Allow User Variables=True;SslMode=none;AllowPublicKeyRetrieval=True;" "MySQLConnString": "server=127.0.0.1;Database=equipmentrearend;Uid=root;Pwd=insght;Allow User Variables=True;SslMode=none;AllowPublicKeyRetrieval=True;"
}, },
//JwtConfig //JwtConfig
"JwtConfiguration": { "JwtConfiguration": {

Loading…
Cancel
Save