a
This commit is contained in:
@@ -1433,3 +1433,15 @@ func GetBrandCategoryMap(db *DaoDB, parentID, level, brandID, categoryID int) (b
|
||||
}
|
||||
return brandCatMaps, err
|
||||
}
|
||||
|
||||
func GetBrandSecretNumbers(db *DaoDB, brandID int) (results []*model.SecretNumber, err error) {
|
||||
sql := `
|
||||
SELECT a.*
|
||||
FROM secret_number a
|
||||
LEFT JOIN brand b ON a.pool_key = b.pool_key
|
||||
WHERE b.deleted_at = ? AND b.id = ?
|
||||
`
|
||||
sqlParams := []interface{}{utils.DefaultTimeValue, brandID}
|
||||
err = GetRows(db, &results, sql, sqlParams)
|
||||
return results, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user