From f5d55e8b6af4138bdcbca7058dea39e006fb5d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E6=A2=A6=E5=8D=83=E5=B9=B4?= <421281095@qq.com> Date: Tue, 3 Feb 2026 16:17:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(DroneSsnydManage):=20=E6=B8=85?= =?UTF-8?q?=E7=90=86=E4=BB=A3=E7=A0=81=E5=B9=B6=E4=BC=98=E5=8C=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=9B=B4=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除注释掉的ZIP文件条目列举代码 - 添加图斑更新处理逻辑 - 实现项目复制功能以支持仅图斑更新场景 - 优化数据库更新操作流程 --- .../ServiceApp/DroneSsnydManage/DroneSsnyApp.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/OpenAuth.App/ServiceApp/DroneSsnydManage/DroneSsnyApp.cs b/OpenAuth.App/ServiceApp/DroneSsnydManage/DroneSsnyApp.cs index feb9ae2..b90b7a5 100644 --- a/OpenAuth.App/ServiceApp/DroneSsnydManage/DroneSsnyApp.cs +++ b/OpenAuth.App/ServiceApp/DroneSsnydManage/DroneSsnyApp.cs @@ -971,13 +971,6 @@ namespace OpenAuth.App.ServiceApp.DroneSsnydManage var gbk = Encoding.GetEncoding("utf-8"); using (var archive = ZipFile.OpenRead(zipFilePath)) { - // 列举ZIP文件中的条目 - /*foreach (var entry in archive.Entries) - { - var xxx = gbk.GetString(Encoding.Default.GetBytes(entry.FullName)); - Console.WriteLine(xxx); - }*/ - // 提取ZIP文件中的所有文件到指定目录 foreach (var entry in archive.Entries) { @@ -1037,7 +1030,9 @@ namespace OpenAuth.App.ServiceApp.DroneSsnydManage Console.WriteLine("没有权限删除解压目录: " + ex.Message); } } - // todo 关于只更新图斑如何处理? + + // 处理只有图斑更新的情况 + oldProject.CopyTo(project); var b = await uow.DroneSsnyd.AsUpdateable(project).IgnoreNullColumns().ExecuteCommandAsync(); if (b > 0) {