From b985b1a907a8dbf6e8ef5680dc7967bb44b7b04c Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 16 Dec 2019 18:26:29 +0800 Subject: [PATCH] fk --- business/model/dao/act.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/act.go b/business/model/dao/act.go index ec8fd2a47..8e3db3c8c 100644 --- a/business/model/dao/act.go +++ b/business/model/dao/act.go @@ -406,11 +406,11 @@ func GetEffectiveActStoreSkuInfo(db *DaoDB, actID int, vendorIDs []int, actType sqlParams = append(sqlParams, model.GetVendorMask(vendorIDs...), vendorIDs) } if actID > 0 { - sql = " AND t1.id = ?" + sql += " AND t1.id = ?" sqlParams = append(sqlParams, actID) } if actType != model.ActTypeAll { - sql = " AND t1.`type` = ?" + sql += " AND t1.type = ?" sqlParams = append(sqlParams, actType) } if len(storeIDs) > 0 {