From a0fee1f7566c2acebd34c63c9f4c578df0bc3a9f Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 16 Dec 2019 18:21:16 +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 0137b566d..ec8fd2a47 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.act_type = ?" + 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 {