Browse Source

平台端商品管理商品平台上架状态功能后台业务处理

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

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

@ -112,4 +112,10 @@ public class ShopProduct {
@TableField(exist = false)
private String classifyName;
/**
* 商品上架平台状态 0-已下架 1-已上架 2-待审核 3-审核失败
*/
@ApiModelProperty(value = "商品上架平台状态 0-已下架 1-已上架 2-待审核 3-审核失败")
private Integer platShelveState;
}

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

@ -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&gt;=#{startTime} and a.create_time&lt;=#{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 (

Loading…
Cancel
Save