fix(listing): 共享号库按租户货架展示分销商品

This commit is contained in:
yml
2026-11-23 14:13:05 +08:00
parent 8c41c258fa
commit 44f883866c
2 changed files with 85 additions and 22 deletions
@@ -324,7 +324,7 @@ func applyTenantOfferVisibility(ctx context.Context, db *gorm.DB) *gorm.DB {
return db.Joins(
"INNER JOIN tenant_listing_offers AS tlo ON tlo.listing_id = l.id AND tlo.tenant_id = ? AND tlo.display_status = 'enabled'",
tenantID,
).Where("(l.distribution_site_id IS NULL OR l.distribution_site_id = 0)")
)
}
func (r *Repository) applyTenantOfferPrices(ctx context.Context, items []ListingDTO) error {