From c010b9c085e91790cf7ddb58018f1aa64373ef60 Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Sat, 31 Dec 2022 11:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=BF=E9=97=B4=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/humiture_record.py | 4 ++-- db_logic/medicament.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db_logic/humiture_record.py b/db_logic/humiture_record.py index feb0d18..7ce760e 100644 --- a/db_logic/humiture_record.py +++ b/db_logic/humiture_record.py @@ -65,7 +65,7 @@ class BllHumitureRecord(Repository): #TODO 添加房间筛选 filter_base1 = "" if client_place: - filter_base1 += f"where client_speci='{client_place}'" + filter_base1 += f"where place='{client_place}'" sql_all = f""" select a.client_id, a.client_name, a.day_date, a.avg_wd, a.avg_sd, a.avg_voc, b.place from ( @@ -102,7 +102,7 @@ class BllHumitureRecord(Repository): #TODO 添加房间筛选 filter_base1 = "" if client_place: - filter_base1 += f"where client_speci='{client_place}'" + filter_base1 += f"where place='{client_place}'" # sql_all = f""" # select # DATE_FORMAT(record_date,'%H:%i:%s') day_date, diff --git a/db_logic/medicament.py b/db_logic/medicament.py index dabf02e..c658582 100644 --- a/db_logic/medicament.py +++ b/db_logic/medicament.py @@ -407,7 +407,7 @@ class BllMedicament(Repository): #TODO 添加房间筛选 filter_base1 = "" if client_place: - filter_base1 += f"where client_speci='{client_place}'" + filter_base1 += f"where place='{client_place}'" # sql_all =f""" # select DISTINCT @@ -549,7 +549,7 @@ class BllMedicament(Repository): #TODO 添加房间筛选 filter_base = "" if client_place: - filter_base += f"where client_speci='{client_place}'" + filter_base += f"where place='{client_place}'" sql_all = f""" select `name`, english_name, bar_code, purity,