商品模块代码提交

This commit is contained in:
Tankaikai 2025-03-03 14:55:52 +08:00
parent f757f0698d
commit 5ef09c4906
3 changed files with 12 additions and 3 deletions

View File

@ -90,6 +90,10 @@ public class ShopProductInfoVo implements Serializable {
* 商品规格 * 商品规格
*/ */
private Object selectSpecInfo; private Object selectSpecInfo;
/**
* 打包费
*/
private BigDecimal packFee;
/** /**
* 商品每周销售日 Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday * 商品每周销售日 Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
*/ */

View File

@ -82,6 +82,10 @@ public class ShopProductVo implements Serializable {
* 是否热销 1- 0- * 是否热销 1- 0-
*/ */
private Integer isHot; private Integer isHot;
/**
* 打包费
*/
private BigDecimal packFee;
/** /**
* 商品规格列表 * 商品规格列表
*/ */

View File

@ -90,7 +90,8 @@
t1.is_hot, t1.is_hot,
ifnull(t2.suit_num, 1) as suit_num, ifnull(t2.suit_num, 1) as suit_num,
t1.select_spec_info, t1.select_spec_info,
t1.group_snap t1.group_snap,
t1.pack_fee
from tb_product t1 from tb_product t1
left join (select x.product_id, left join (select x.product_id,
x.id as sku_id, x.id as sku_id,
@ -161,10 +162,10 @@
</select> </select>
<update id="updateProductStockNum"> <update id="updateProductStockNum">
update tb_product update tb_product
<if test="type == 'add"> <if test="type == 'add'">
set stock_number = stock_number + #{num} set stock_number = stock_number + #{num}
</if> </if>
<if test="type == 'sub"> <if test="type == 'sub'">
set stock_number = stock_number - #{num} set stock_number = stock_number - #{num}
</if> </if>
where id = #{id} where id = #{id}