AI实验室后端

This commit is contained in:
BBIT-Kai
2026-02-04 13:58:18 +08:00
parent f9536dd0b4
commit 646e312a4c
24 changed files with 962 additions and 86 deletions
+2 -1
View File
@@ -157,10 +157,11 @@ def update_device_db(id: str, data: dict) -> int:
cursor.execute(
"""
UPDATE iot_users
SET remark=%s, is_active=%s, dept_id=%s, is_superuser=%s
SET name=%s, remark=%s, is_active=%s, dept_id=%s, is_superuser=%s
WHERE id=%s;
""",
(
data.get("name"),
data.get("remark"),
bool(data.get("status", 1)),
data.get("dept_id"),