Browse Source

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

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

44
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -356,21 +356,35 @@ namespace _24Hour.Controllers.Common
/// <returns></returns>
[HttpGet]
[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号")
{
res.IsSucceed = true;
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
{
res.IsSucceed = false;
result.IsSucceed = false;
}
return Task.FromResult(res);
return Task.FromResult(result);
}
private JZJBXXDto GetInfo()
{
@ -389,6 +403,17 @@ namespace _24Hour.Controllers.Common
return convert;
}
/// <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>
/// <param name="dto"></param>
@ -400,7 +425,6 @@ namespace _24Hour.Controllers.Common
Result<JZJBXXDto> res = new Result<JZJBXXDto>();
try
{
var data = mapper.Map<JZJBXX>(dto);
var mls = dto.jzml.ToList();
@ -417,7 +441,7 @@ namespace _24Hour.Controllers.Common
res.result = dto;
return res;
}
catch(Exception ex)
catch (Exception ex)
{
result.IsSucceed = false;
return res;
@ -426,4 +450,4 @@ namespace _24Hour.Controllers.Common
#endregion
}
}
}

2
24Hour/appsettings.json

@ -8,7 +8,7 @@
"AllowedHosts": "*",
"ConnectionStrings": {
"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
"JwtConfiguration": {

Loading…
Cancel
Save