zhijiezhao 2 years ago
parent
commit
78c1c54561
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mapper/PriceMapper.xml

+ 2 - 2
src/main/resources/mapper/PriceMapper.xml

@@ -20,7 +20,7 @@
                p.taxPoint                   as taxRate,
                p.includedTax,
                p.invoiceType,
-               if(csp.id is not null, 1, 0) as svipProductFlag,
+               if(csp.id is not null and csp.status=0, 1, 0) as svipProductFlag,
                ccs.priceType                as svipPriceType,
                ccs.discount                 as svipDiscount,
                ccs.discountPrice            as svipDiscountPrice,
@@ -43,7 +43,7 @@
         p.includedTax,
         p.invoiceType,
         p.taxPoint as taxRate,
-        if(csp.id is not null,1,0) as svipProductFlag,
+        if(csp.id is not null and csp.status=0,1,0) as svipProductFlag,
         (select priceType from cm_svip_product_sku csps
         left join cm_sku cs on csps.skuId=cs.skuId
         where csps.productId=p.productID