|
@@ -49,7 +49,7 @@
|
|
chc.productId,
|
|
chc.productId,
|
|
p.mainImage as productImage,
|
|
p.mainImage as productImage,
|
|
p.name as productName,
|
|
p.name as productName,
|
|
- chc.price,
|
|
|
|
|
|
+ chc.price as price,
|
|
(select price from cm_hehe_sku where productId=chc.productId order by price asc limit 1) as normalPrice,
|
|
(select price from cm_hehe_sku where productId=chc.productId order by price asc limit 1) as normalPrice,
|
|
chc.memberNum,
|
|
chc.memberNum,
|
|
count(chcm.id) as existNum,
|
|
count(chcm.id) as existNum,
|
|
@@ -61,7 +61,7 @@
|
|
from cm_hehe_collage chc
|
|
from cm_hehe_collage chc
|
|
left join cm_hehe_collage_member chcm on chc.id = chcm.collageId
|
|
left join cm_hehe_collage_member chcm on chc.id = chcm.collageId
|
|
left join cm_order co on chcm.orderId = co.orderID
|
|
left join cm_order co on chcm.orderId = co.orderID
|
|
- left join cm_hehe_collage_product chcp on chc.productId = chcp.productId
|
|
|
|
|
|
+ left join cm_hehe_collage_product chcp on chc.productId = chcp.productId
|
|
left join product p on chcp.productId = p.productID
|
|
left join product p on chcp.productId = p.productID
|
|
where chc.id = #{collageId}
|
|
where chc.id = #{collageId}
|
|
and co.receiptStatus = 3
|
|
and co.receiptStatus = 3
|