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/SGUtils.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ExportMap/cs/SGUtils.cs b/ExportMap/cs/SGUtils.cs index 37b7c31..8a11d93 100644 --- a/ExportMap/cs/SGUtils.cs +++ b/ExportMap/cs/SGUtils.cs @@ -205,11 +205,17 @@ /// </summary> private static int InsertToDB(SysMeta meta, XYZArgs args) { - 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(meta, meta.verid), meta.id + "\\" + meta.name); - int pubid = PubDBHelper.InsertPublish(sys); + pubid = PubDBHelper.InsertPublish(sys); if (pubid > 0) { sys.id = pubid; -- Gitblit v1.9.3