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)}))