|
|
@ -113,7 +113,7 @@ class BllMedicament(Repository):
|
|
|
|
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}' "
|
|
|
|
sql_all = f"""
|
|
|
|
sql_all = f"""
|
|
|
|
select * from rms_medicament {filter_base}
|
|
|
|
select * from rms_medicament {filter_base} order by put_in_date desc
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
count_number = len(self.execute(sql_all).fetchall())
|
|
|
|
count_number = len(self.execute(sql_all).fetchall())
|
|
|
|