From dfa4dcb7601183de1719e884918eb40a1aa08fc9 Mon Sep 17 00:00:00 2001 From: wangxu <1318272526@qq.com> Date: Fri, 31 Oct 2025 14:55:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98=E8=AF=8A?= =?UTF-8?q?=E6=96=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tmnet_db_func.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tmnet_db_func.py b/app/tmnet_db_func.py index 21db494..f00dcaa 100644 --- a/app/tmnet_db_func.py +++ b/app/tmnet_db_func.py @@ -170,8 +170,8 @@ class TmnetDbHelper(TableDbHelperBase): if (t2.location is not null, t2.location, t1.location) as location, t1.nodeid, t1.area_id - from (select name,crossid, location,nodeid, area_id from `cross` where nodeid = %s and area_id = %s and at_edge=0 and isdeleted=0 and crossid = %s) as t1 - left join (select name,crossid, location,nodeid, area_id from `cross_ledger_update_info` where nodeid = %s and area_id = %s and at_edge=0 and isdeleted=0 and crossid = %s) as t2 on t1.crossid=t2.crossid + from (select name,crossid, location,nodeid, area_id from `cross` where nodeid = %s and area_id = %s and at_edge=0 and isdeleted=0 and crossid = '%s') as t1 + left join (select name,crossid, location,nodeid, area_id from `cross_ledger_update_info` where nodeid = %s and area_id = %s and at_edge=0 and isdeleted=0 and crossid = '%s') as t2 on t1.crossid=t2.crossid """ % (nodeid, area_id, crossid, nodeid, area_id, crossid) return self.do_select(sql)