From 520c0867600b12216106338b6b897fa8dfde8ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sat, 15 Oct 2022 15:35:38 +0800 Subject: [PATCH] 1 --- business/model/dao/store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 31ba2b753..9f19a1c5c 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -306,6 +306,7 @@ func GetStoresMapList2(db *DaoDB, vendorIDs, storeIDs, storeStatuss []int, statu utils.DefaultTimeValue, utils.DefaultTimeValue, } + if len(vendorIDs) > 0 { sql += " AND t1.vendor_id IN (" + GenQuestionMarks(len(vendorIDs)) + ")" sqlParams = append(sqlParams, vendorIDs)