From a12c2baf8246d0af0e15756b7e008ded544e9b1c Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 02 八月 2023 10:17:04 +0800 Subject: [PATCH] 1 --- ExportMap/cs/LasUtils.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ExportMap/cs/LasUtils.cs b/ExportMap/cs/LasUtils.cs index 5f38402..2d9d823 100644 --- a/ExportMap/cs/LasUtils.cs +++ b/ExportMap/cs/LasUtils.cs @@ -130,11 +130,17 @@ /// </summary> private static int InsertToDB(SysMeta meta, XYZArgs args, string path) { - if (PubDBHelper.IsPublish(meta.id)) return 1; + //if (PubDBHelper.IsPublish(meta.id)) return 1; + int pubid = PubDBHelper.GetPushlishId(meta.id); + if (pubid > 0) + { + PubDBHelper.UpdatePublish(pubid, args.name, args.userId, null); + return pubid; + } SysPublish sys = Tools.NewPublish(meta, args, GetReleaseUrl(path), path); - int pubid = PubDBHelper.InsertPublish(sys); + pubid = PubDBHelper.InsertPublish(sys); if (pubid > 0) { sys.id = pubid; -- Gitblit v1.9.3