返回柜体信息方式修改

duizhaopin
13507605001 2 years ago
parent c5f6516358
commit 0f34cfad26

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

Loading…
Cancel
Save