From c4bbbeb0700d6190e01051f998e3f3ffb45a93bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Tue, 31 Oct 2023 14:30:35 +0800 Subject: [PATCH] a --- .../Common/LawyerArchivesController.cs | 22 +++++++++++++++++++ 24Hour/appsettings.json | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 427c895..145191e 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -419,6 +419,28 @@ namespace _24Hour.Controllers.Common { var a = mapper.Map(list); + var datd = new + { + id = a.Id, + lable = a.jzmc, + children = a.jzml.Where(x => x.fmlbh == null).OrderBy(x => x.mlsxh).Select(x => new + { + id=x.Id, + lable=x.mlxsmc, + children = a.jzml.Where(q => q.fmlbh == x.mlbh).OrderBy(q => q.mlsxh).Select(q =>new + { + id=q.Id, + lable=q.mlxsmc, + children = q.jzwj.OrderBy(e => e.wjsxh).Select(e => new + { + id=e.Id, + lable=e.wjxsmc, + filepath = e.jpgwjlj + }) + }) + }) + }; + var data = new[] { new { diff --git a/24Hour/appsettings.json b/24Hour/appsettings.json index 724480e..e592234 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": {