From 07f35c43bf4f0361aeb8bb4269f85df258bb21c5 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Fri, 17 Jul 2026 01:56:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20queryList=20?= =?UTF-8?q?=E4=B8=AD=20stockIds=20=E7=AD=9B=E9=80=89=20if=20=E5=9D=97?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E5=AF=BC=E8=87=B4=E8=AF=AD=E6=B3=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/systems/stock_transaction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/service/systems/stock_transaction.js b/app/service/systems/stock_transaction.js index 42186ad..a339123 100644 --- a/app/service/systems/stock_transaction.js +++ b/app/service/systems/stock_transaction.js @@ -477,6 +477,8 @@ class StockTransactionService extends Service { // 商品筛选 const normalizedStockIds = resolvedStockIds; + if (normalizedStockIds.length > 0) { + whereClauses.push('t.stock_id IN (:stockIds)'); replacements.stockIds = normalizedStockIds; }