From 1a78e75a29ae77f291aa55501587c4aae2dd32e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 7 Jan 2026 17:51:47 +0800 Subject: [PATCH] 1 --- business/model/dao/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 485cc1ef9..51dd1a389 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -1805,7 +1805,7 @@ func StatisticsSettlement(db *DaoDB, storeId []int, start, end time.Time, vendor } if len(storeId) != 0 { sql += ` AND IF(gs.jx_store_id != 0, gs.jx_store_id, gs.store_id) IN (` + dao.GenQuestionMarks(len(storeId)) + `)` - param = append(param, vendorId) + param = append(param, storeId) } if len(vendorId) != 0 { sql += ` AND gs.vendor_id IN (` + GenQuestionMarks(len(vendorId)) + `)` @@ -1890,7 +1890,7 @@ func StatisticsSettlementByCity(db *DaoDB, cityCode []string, start, end time.Ti } if len(cityCode) != 0 { sql += ` AND s.city_code IN (` + dao.GenQuestionMarks(len(cityCode)) + `)` - param = append(param, vendorId) + param = append(param, cityCode) } sql += ` AND s.deleted_at = ? `