update backend
This commit is contained in:
@ -176,7 +176,7 @@ func (r *brandRepository) FeaturedIDs(ctx context.Context, metric string, limit
|
||||
return ids, nil
|
||||
}
|
||||
|
||||
// ListByIDs 按 id 集合取品牌行;MySQL IN 查询不保证返回顺序,调用方自行重排。
|
||||
// ListByIDs 按 id 集合取品牌行;IN 查询不保证返回顺序,调用方自行重排。
|
||||
func (r *brandRepository) ListByIDs(ctx context.Context, ids []uint32) ([]model.Brand, error) {
|
||||
if len(ids) == 0 {
|
||||
return []model.Brand{}, nil
|
||||
@ -281,7 +281,7 @@ WITH latest_per_brand AS (
|
||||
END DESC,
|
||||
id DESC
|
||||
) AS rn
|
||||
FROM brand_runway
|
||||
FROM brand_runways
|
||||
WHERE is_deleted = 0 AND brand_id IN (?)
|
||||
)
|
||||
SELECT id, brand_id, cover, title_en, title_cn
|
||||
|
||||
Reference in New Issue
Block a user