GetEffectiveActStoreSkuInfo, ActTypeAll

This commit is contained in:
gazebo
2019-12-16 16:46:05 +08:00
parent 84f2c8930c
commit 7296b5cca3
7 changed files with 8 additions and 6 deletions

View File

@@ -409,7 +409,7 @@ func GetEffectiveActStoreSkuInfo(db *DaoDB, actID int, vendorIDs []int, actType
sql = " AND t1.act_type = ?"
sqlParams = append(sqlParams, actID)
}
if actType > 0 {
if actType != model.ActTypeAll {
sql = " AND t1.type = ?"
sqlParams = append(sqlParams, actType)
}