商品模块代码提交
This commit is contained in:
parent
f757f0698d
commit
5ef09c4906
|
|
@ -90,6 +90,10 @@ public class ShopProductInfoVo implements Serializable {
|
|||
* 商品规格
|
||||
*/
|
||||
private Object selectSpecInfo;
|
||||
/**
|
||||
* 打包费
|
||||
*/
|
||||
private BigDecimal packFee;
|
||||
/**
|
||||
* 商品每周销售日 如:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -82,6 +82,10 @@ public class ShopProductVo implements Serializable {
|
|||
* 是否热销 1-是 0-否
|
||||
*/
|
||||
private Integer isHot;
|
||||
/**
|
||||
* 打包费
|
||||
*/
|
||||
private BigDecimal packFee;
|
||||
/**
|
||||
* 商品规格列表
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@
|
|||
t1.is_hot,
|
||||
ifnull(t2.suit_num, 1) as suit_num,
|
||||
t1.select_spec_info,
|
||||
t1.group_snap
|
||||
t1.group_snap,
|
||||
t1.pack_fee
|
||||
from tb_product t1
|
||||
left join (select x.product_id,
|
||||
x.id as sku_id,
|
||||
|
|
@ -161,10 +162,10 @@
|
|||
</select>
|
||||
<update id="updateProductStockNum">
|
||||
update tb_product
|
||||
<if test="type == 'add">
|
||||
<if test="type == 'add'">
|
||||
set stock_number = stock_number + #{num}
|
||||
</if>
|
||||
<if test="type == 'sub">
|
||||
<if test="type == 'sub'">
|
||||
set stock_number = stock_number - #{num}
|
||||
</if>
|
||||
where id = #{id}
|
||||
|
|
|
|||
Loading…
Reference in New Issue