|
|
@ -112,6 +112,8 @@ class BllMedicament(Repository):
|
|
|
|
if filter_base:
|
|
|
|
if filter_base:
|
|
|
|
filter_base += " and "
|
|
|
|
filter_base += " and "
|
|
|
|
filter_base += f" `name` like '{seach_word}' or english_name like '{seach_word}' "
|
|
|
|
filter_base += f" `name` like '{seach_word}' or english_name like '{seach_word}' "
|
|
|
|
|
|
|
|
if filter_base:
|
|
|
|
|
|
|
|
filter_base = f" where {filter_base}"
|
|
|
|
sql_all = f"""
|
|
|
|
sql_all = f"""
|
|
|
|
select * from rms_medicament {filter_base} order by put_in_date desc
|
|
|
|
select * from rms_medicament {filter_base} order by put_in_date desc
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|