|
@@ -196,7 +196,7 @@ func GetRelatePackage(info ProductDTO) (prodList []ProductDTO, err error) {
|
|
|
return
|
|
|
}
|
|
|
for _, product := range merchantProduct {
|
|
|
- if product.Deleted == 0 && product.SaleStatus == "on_sale" {
|
|
|
+ if !product.Deleted && product.SaleStatus == "on_sale" {
|
|
|
prodList = append(prodList, convertToProductDTO(product))
|
|
|
}
|
|
|
}
|