From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
debug_check.py | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/debug_check.py b/debug_check.py
new file mode 100644
index 0000000..a4fa793
--- /dev/null
+++ b/debug_check.py
@@ -0,0 +1,34 @@
+import sqlite3
+
+# Check both databases
+for label, db_path in [
+ ("Output DB", r'd:\TestPlatform\TapProject\WPFProject\bin\x64\Debug\Config\Database\database.db'),
+ ("Source DB", r'd:\TestPlatform\TapProject\WPFProject\Config\Database\database.db')
+]:
+ print(f"\n=== {label} ===")
+ conn = sqlite3.connect(db_path)
+ c = conn.cursor()
+
+ # Check schema
+ c.execute("PRAGMA table_info(menu)")
+ cols = [row[1] for row in c.fetchall()]
+ print(f"Columns: {cols}")
+
+ # Check our entries
+ c.execute("SELECT * FROM menu WHERE code IN ('DeviceConfig','DeviceDebug')")
+ for r in c.fetchall():
+ print(f" Menu: {r}")
+
+ # Check comparison with working entries
+ c.execute("SELECT code, name, level, type, parentCode FROM menu WHERE parentCode='ManualControl'")
+ print("\n ManualControl children:")
+ for r in c.fetchall():
+ print(f" {r}")
+
+ # Check role_menu_rel
+ c.execute("SELECT * FROM role_menu_rel WHERE menuCode IN ('DeviceConfig','DeviceDebug')")
+ print("\n role_menu_rel:")
+ for r in c.fetchall():
+ print(f" {r}")
+
+ conn.close()
--
Gitblit v1.9.1