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