This commit is contained in:
gazebo
2018-11-14 10:39:01 +08:00
parent a679ef3f44
commit ec1a3deee6

View File

@@ -581,7 +581,7 @@ func GetJdPromotions(ctx *jxcontext.Context, keyword string, params map[string]i
sql += " JOIN store st ON st.id = tt1.store_id AND st.city_code = ?"
sqlParams = append(sqlParams, params["cityCode"].(int))
}
sql += "WHERE tt1.promotion_id = t1.id"
sql += " WHERE tt1.promotion_id = t1.id"
if params["storeID"] != nil {
sql += " AND tt1.store_id = ?"
sqlParams = append(sqlParams, params["storeID"].(int))