From 1a1c8e71fcd14858f595029f089b2d4a00202b32 Mon Sep 17 00:00:00 2001
From: ogi <Administrator@S-OGI-PC>
Date: Fri, 05 Dec 2025 09:24:16 +0900
Subject: [PATCH] プロジェクトファイルを追加。

---
 HotelPms.Data.Common/Util/SyncConfig.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/HotelPms.Data.Common/Util/SyncConfig.cs b/HotelPms.Data.Common/Util/SyncConfig.cs
new file mode 100644
index 0000000..08c9398
--- /dev/null
+++ b/HotelPms.Data.Common/Util/SyncConfig.cs
@@ -0,0 +1,15 @@
+namespace HotelPms.Data.Common.Util
+{
+    public class SyncConfig
+    {
+        /// <summary>
+        /// 32,767
+        /// </summary>
+        /// <param name="type"></param>
+        /// <returns></returns>
+        public static string GetLockSql(ESyncType type)
+        {
+            return $"UPDATE S_SyncConfig SET Seq = CASE WHEN Seq = 32767 THEN 1 ELSE Seq + 1 END,UpdateDate = GETDATE() WHERE ID = {(int)type};";
+        }
+    }
+}

--
Gitblit v1.10.0