|
|
@ -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:
|
|
|
|