From f5ad1e62e9ce99a82ed8649ee5f3e174348d1536 Mon Sep 17 00:00:00 2001 From: apan Date: Tue, 2 Aug 2022 17:22:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E9=A1=B5-=E9=A1=B5?= =?UTF-8?q?=E7=A0=81=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/drug/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/drug/views.py b/apps/drug/views.py index 372c015..c58db05 100644 --- a/apps/drug/views.py +++ b/apps/drug/views.py @@ -107,8 +107,8 @@ def drug_return(): @drug_router.route("/use_or_return_list", methods=["GET", "POST"]) def drug_use_retur_list(): status = request.values.get("status") - page = request.values.get("page", 1) - page_size = request.values.get("page_size", 10) + page = int(request.values.get("page", 1)) + page_size = int(request.values.get("page_size", 10)) page_param = PageParam(page, page_size) data = BllMedicament().drug_use_return(status=status, page_param=page_param) return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data": Utils.msyql_table_model(data)}))