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="该柜体没有柜子"))