fix(tenant): 收紧双站后台边界并补齐货架管理
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user