From 0f34cfad266ebe3966116b87dd57f04a19844820 Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Tue, 3 Jan 2023 18:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=9F=9C=E4=BD=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=96=B9=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/client/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/views.py b/apps/client/views.py index 1dbf19c..276b519 100644 --- a/apps/client/views.py +++ b/apps/client/views.py @@ -170,9 +170,9 @@ def client_empty(): @token_auth.login_required def get_client_drawer(): client_id = request.values.get("client_id") - data_list = BllClientCell().findList(EntityClientCell.client_id==client_id).all() + data_list = BllClientCell().execute(f"select * from rms_client_cell where client_id='{client_id}'") if data_list: - return jsonify(Utils.true_return(data=data_list)) + return jsonify(Utils.true_return(data=Utils.msyql_table_model(data_list))) else: return jsonify(Utils.false_return(msg="该柜体没有柜子"))