This commit is contained in:
suyl
2021-09-06 13:40:48 +08:00
parent 258aa7acb2
commit be6a11c653

View File

@@ -1438,7 +1438,7 @@ func GetBrandSecretNumbers(db *DaoDB, brandID int) (results []*model.SecretNumbe
sql := `
SELECT a.*
FROM secret_number a
LEFT JOIN brand b ON a.pool_key = b.pool_key
LEFT JOIN brand b ON a.pool_key = b.secret_number_pool_key
WHERE b.deleted_at = ? AND b.id = ?
`
sqlParams := []interface{}{utils.DefaultTimeValue, brandID}