修复加载台账信息逻辑
This commit is contained in:
parent
17f89f67cd
commit
796197845d
|
|
@ -8,8 +8,8 @@ class TmnetDbHelper(TableDbHelperBase):
|
||||||
self.DB_Name = 'tmnet'
|
self.DB_Name = 'tmnet'
|
||||||
|
|
||||||
def reload_cross_info(self, nodeid, last_reload_time):
|
def reload_cross_info(self, nodeid, last_reload_time):
|
||||||
sql1 = "select * from cross_ledger_update_info where nodeid = %s and crossid is not null" % nodeid
|
sql1 = "select * from cross_ledger_update_info where nodeid = %s and crossid is not null and isdeleted != 1" % nodeid
|
||||||
sql2 = "select * from road_ledger_update_info where nodeid = %s" % nodeid
|
sql2 = "select * from road_ledger_update_info where nodeid = %s and recordstate != 1" % nodeid
|
||||||
crosses_list, cross_res_list = self.do_select(sql1), []
|
crosses_list, cross_res_list = self.do_select(sql1), []
|
||||||
for cross_row in crosses_list:
|
for cross_row in crosses_list:
|
||||||
if cross_row['update_time'] > last_reload_time:
|
if cross_row['update_time'] > last_reload_time:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue