fix: 修复 queryList 中 stockIds 筛选 if 块缺失导致语法错误

This commit is contained in:
liufumingren 2026-07-17 01:56:54 +08:00
parent df8173cecd
commit 07f35c43bf

View File

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