Ver Fonte

过滤下架产品

kobe6258 há 4 meses atrás
pai
commit
8e68c36d30
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      models/merchant/merchant_product.go

+ 1 - 1
models/merchant/merchant_product.go

@@ -53,7 +53,7 @@ func (MerchantProduct) TableName() string {
 
 func GetMerchantProductById(id int) (product MerchantProduct, err error) {
 	db := models.Main()
-	err = db.Select(detailColumns).Where("id = ? and deleted =?", id, false).First(&product).Error
+	err = db.Select(detailColumns).Where("id = ?", id).First(&product).Error
 	return
 }