From 0d46e8030e15a61feeba560d9333d2efd9de7658 Mon Sep 17 00:00:00 2001 From: cheng19920620 <511180749@qq.com> Date: Wed, 1 Nov 2023 13:58:40 +0800 Subject: [PATCH] =?UTF-8?q?--=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/MinioController/MinioApiController.cs | 9 +++++---- .../Entity/MinioController/RequstStoragePath.cs | 8 ++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs b/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs index 4a03bbc..bbb5508 100644 --- a/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs +++ b/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs @@ -849,8 +849,7 @@ namespace IBKLinker_Minio.Controller.MinioController { string sql = string.Empty; - - date = db.Query("select * from MINIO_STORAGE_PATH where CLEAR_FLAG='0' ORDER BY PK").ToList(); + date = db.Query("select * from MINIO_STORAGE_PATH where UPK=0 AND FILE_LEVEL=1 and CLEAR_FLAG='0' ORDER BY PK").ToList(); } if (date.Count > 0) @@ -861,8 +860,9 @@ namespace IBKLinker_Minio.Controller.MinioController model.Pk = item.Pk; model.FileName = item.FileName; - model.FilePate = item.FilePath; + model.FilePath = item.FilePath; model.FileType = item.FileType; + model.FileLever = item.FileLevel; model.requstStoragePaths = new List(); List ds = GetMenuTree(item.Pk.ToString()); foreach (var items in ds) @@ -870,8 +870,9 @@ namespace IBKLinker_Minio.Controller.MinioController StoragePath models = new StoragePath(); models.Pk = items.Pk; models.FileName = items.FileName; - models.FilePate = items.FilePath; + models.FilePath = items.FilePath; models.FileType = items.FileType; + models.FileLever = items.FileLevel; model.requstStoragePaths.Add(models); } requstStoragePaths.Add(model); diff --git a/IBKLinker-Minio/Entity/MinioController/RequstStoragePath.cs b/IBKLinker-Minio/Entity/MinioController/RequstStoragePath.cs index 748badb..0a81863 100644 --- a/IBKLinker-Minio/Entity/MinioController/RequstStoragePath.cs +++ b/IBKLinker-Minio/Entity/MinioController/RequstStoragePath.cs @@ -27,7 +27,11 @@ namespace IBKLinker_Minio.Entity.MinioController /// ///文件路径 /// - public string FilePate { get; set; } + public string FilePath { get; set; } + /// + ///层级 + /// + public int FileLever { get; set; } } public class RequstStoragePath: StoragePath { @@ -45,6 +49,6 @@ namespace IBKLinker_Minio.Entity.MinioController ///文件路径 /// [Persistent("FILE_PATH"), DisplayName("文件路径")] - public string FilePate { get; set; } + public string FilePath { get; set; } } }