From 13f6be3b83688ad85f5d3005a632479025a0e1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Mon, 23 Oct 2023 17:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=8D=B7=E5=AE=97=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=A0=BC=E5=BC=8F=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3AddArchivesInfoByChildId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/LawyerArchivesController.cs | 44 ++++++++++++++----- 24Hour/appsettings.json | 2 +- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 7539aba..587109a 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -356,21 +356,35 @@ namespace _24Hour.Controllers.Common /// [HttpGet] [Route("QueryFileFromtwenty")] - public Task> QueryFileFromtwenty(string bmsah) + public Task QueryFileFromtwenty(string bmsah) { - Result res = new Result(); 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; } /// + /// 上传已选中的第三级页码的id + /// + /// + /// + /// + [HttpPost("AddArchivesInfoByChildId")] + public Task AddArchivesInfoByChildId(AddArchivesInfoInput input) + { + return Task.FromResult(result); + } + /// /// 添加卷宗信息 /// /// @@ -400,7 +425,6 @@ namespace _24Hour.Controllers.Common Result res = new Result(); try { - var data = mapper.Map(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 } -} \ No newline at end of file +} diff --git a/24Hour/appsettings.json b/24Hour/appsettings.json index 010af95..120c84b 100644 --- a/24Hour/appsettings.json +++ b/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": {