修改查询错误

duizhaopin
apan_youxiang@163.com 2 years ago
parent 6ebd4386d0
commit 04057bd54e

@ -27,7 +27,7 @@ class BllMedicamentTemplate(Repository):
filter_base += f" client_id='{client_id}' " filter_base += f" client_id='{client_id}' "
if filter_base: if filter_base:
filter_base = f" where {filter_base} " filter_base = f" where {filter_base} "
sql_all = f"select * from rms_medicament_template {client_id} order by create_date desc" sql_all = f"select * from rms_medicament_template {filter_base} order by create_date desc"
try: try:
count_number = len(self.execute(sql_all).fetchall()) count_number = len(self.execute(sql_all).fetchall())
except Exception: except Exception:

Loading…
Cancel
Save