From fc91486c050bde049c7b0899d54e40a90bc185b4 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 24 Jun 2026 22:13:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20tree=E6=8E=A7=E4=BB=B6=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AD=90=E9=A1=B9=E5=90=8E=E5=9B=9E=E6=9F=A5=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E8=BF=94=E5=9B=9Euser=5Fdata=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AD=90=E8=8A=82=E7=82=B9=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xls2ddl/tmpls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xls2ddl/tmpls.py b/xls2ddl/tmpls.py index 2f51ef1..a6fdd20 100644 --- a/xls2ddl/tmpls.py +++ b/xls2ddl/tmpls.py @@ -305,6 +305,8 @@ db = DBPools() dbname = get_module_dbname('{{modulename}}') async with db.sqlorContext(dbname) as sor: r = await sor.C('{{summary[0].name}}', ns.copy()) + _new_rows = await sor.sqlExe("SELECT * FROM {{summary[0].name}} WHERE {{summary[0].pkey}} = ${id}$", {'id': id}) + _user_data = _new_rows[0] if _new_rows else ns return { "widgettype":"Message", "options":{ @@ -312,7 +314,8 @@ async with db.sqlorContext(dbname) as sor: "cheight":9, "title":"Add Success", "timeout":3, - "message":"ok" + "message":"ok", + "user_data": _user_data } }