Browse Source

平台端商品管理主图与规格图窜图处理

multiwx
dy-hu 7 months ago
parent
commit
1386dae363
  1. 6
      cereshop-admin/src/main/java/com/shop/cereshop/admin/page/product/ShopProduct.java
  2. 2
      cereshop-admin/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml

6
cereshop-admin/src/main/java/com/shop/cereshop/admin/page/product/ShopProduct.java

@ -38,6 +38,12 @@ public class ShopProduct {
private String productName;
/**
* 商品图片第一张
*/
@ApiModelProperty(value = "商品图片第一张")
private String productImage;
/**
* 商家名称
*/
@ApiModelProperty(value = "商家名称")

2
cereshop-admin/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml

@ -409,7 +409,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 from cere_shop_product a
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
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,

Loading…
Cancel
Save