This commit is contained in:
gazebo
2019-12-16 18:21:16 +08:00
parent f6c1b70484
commit a0fee1f756

View File

@@ -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 {