|
@@ -136,13 +136,14 @@
|
|
|
<select id="findSkus" resultType="com.caimei.modules.products.entity.Sku">
|
|
|
select cmps.id,
|
|
|
cmps.mallProductId as productId,
|
|
|
- cs.skuId,
|
|
|
+ # cs.skuId,
|
|
|
ROUND(cmps.price * cmps.shopPercent / 100,2) AS costPrice,
|
|
|
cmps.minBuyNumber,
|
|
|
cmps.price,
|
|
|
- cs.unit
|
|
|
+ cmps.unit,
|
|
|
+ cmps.stock
|
|
|
from cm_mall_product_sku cmps
|
|
|
- left join cm_sku cs on cmps.skuId = cs.skuId
|
|
|
+ # left join cm_sku cs on cmps.skuId = cs.skuId
|
|
|
where cmps.mallProductId = #{productId}
|
|
|
order by cmps.price asc
|
|
|
</select>
|