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