|
|
@ -412,7 +412,7 @@ |
|
|
|
<select id="getAll" parameterType="com.shop.cereshop.admin.param.product.ProductGetAllParam" resultType="com.shop.cereshop.admin.page.product.ShopProduct"> |
|
|
|
SELECT a.product_id,a.product_name,c.price,concat('¥',c.price,'~¥',d.price) sectionPrice, |
|
|
|
IF(f.image IS NULL OR f.image='',b.product_image,f.image) image,e.shop_name, |
|
|
|
c.stock_number,a.shelve_state,a.fictitious_number,a.create_time,g.volume,a.classify_id,b.product_image from cere_shop_product a |
|
|
|
c.stock_number,a.shelve_state,a.plat_shelve_state,a.fictitious_number,a.create_time,g.volume,a.classify_id,b.product_image from cere_shop_product a |
|
|
|
LEFT JOIN (SELECT a.product_id,a.product_image from cere_product_image a, |
|
|
|
cere_shop_product b where a.product_id=b.product_id GROUP BY a.product_id) b ON a.product_id=b.product_id |
|
|
|
LEFT JOIN (SELECT a.product_id,a.sku_id,MIN(a.price) price, |
|
|
@ -441,7 +441,7 @@ |
|
|
|
and a.create_time>=#{startTime} and a.create_time<=#{endTime} |
|
|
|
</if> |
|
|
|
<if test="shelveState!=null"> |
|
|
|
and a.shelve_state=#{shelveState} |
|
|
|
and a.plat_shelve_state=#{shelveState} |
|
|
|
</if> |
|
|
|
<if test="productIdList!=null and productIdList.size()>0"> |
|
|
|
and a.product_id in ( |
|
|
|