From 42d6a6d71b86531acc19430ca133e4ed55f76308 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Tue, 4 Aug 2026 16:56:53 +0800 Subject: [PATCH] Update index.js --- hlw/consult-order/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hlw/consult-order/index.js b/hlw/consult-order/index.js index d06d962..34635b0 100644 --- a/hlw/consult-order/index.js +++ b/hlw/consult-order/index.js @@ -1794,7 +1794,7 @@ async function customerRefundOrder(item) { } async function getPatientOrderList(ctx) { - const { patientId, startDate, endDate, isPres, orderStatus } = ctx; + const { patientId, startDate, endDate, isPres, orderStatus, feeType } = ctx; if (typeof patientId !== "string" || patientId.trim() === "") { return { success: false, message: "患者id不能为空" }; } @@ -1811,6 +1811,9 @@ async function getPatientOrderList(ctx) { if (typeof orderStatus === "string" && orderStatus.trim() !== "") { query.orderStatus = orderStatus.trim(); } + if (["YB", "ZF"].includes(feeType)) { + query.feeType = feeType; + } if (typeof isPres === "boolean") { query.preOrderId = { $exists: isPres }; }