商品模块代码提交
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user