This commit is contained in:
suyl
2021-07-19 16:33:02 +08:00
parent e19d03ebba
commit 145211bbe2

View File

@@ -1262,11 +1262,9 @@ func GetStoreManageStateSimple(db *DaoDB, storeIDs, brandIDs []int, vendorID int
SELECT a.* SELECT a.*
FROM store_manage_state a FROM store_manage_state a
LEFT JOIN store b ON b.id = a.store_id AND b.deleted_at = ? LEFT JOIN store b ON b.id = a.store_id AND b.deleted_at = ?
WHERE a.vendor_status <> ?
` `
sqlParams := []interface{}{ sqlParams := []interface{}{
utils.DefaultTimeValue, utils.DefaultTimeValue,
model.StoreStatusDisabled,
} }
if len(storeIDs) > 0 { if len(storeIDs) > 0 {
sql += " AND a.store_id IN (" + GenQuestionMarks(len(storeIDs)) + ")" sql += " AND a.store_id IN (" + GenQuestionMarks(len(storeIDs)) + ")"