|
@@ -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
|