From 04057bd54e45f4f17f6c959a2c7490e31956ae98 Mon Sep 17 00:00:00 2001 From: "apan_youxiang@163.com" Date: Thu, 8 Sep 2022 15:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/medicament_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_logic/medicament_template.py b/db_logic/medicament_template.py index 9447200..36431e3 100644 --- a/db_logic/medicament_template.py +++ b/db_logic/medicament_template.py @@ -27,7 +27,7 @@ class BllMedicamentTemplate(Repository): filter_base += f" client_id='{client_id}' " if 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: count_number = len(self.execute(sql_all).fetchall()) except Exception: