订单倒计时

会员余额明细
库存
This commit is contained in:
2024-06-14 16:33:02 +08:00
parent 69b7ed77ec
commit 4c5fabfffb
14 changed files with 116 additions and 18 deletions

View File

@@ -961,6 +961,7 @@
<where>
info.`status`='1'
AND pro.is_combo = '1'
AND pro.type_enum = 'group'
AND (info.cities = #{cities} or info.districts = #{cities})
<if test="proName != null and proName != ''">
AND pro.`name` LIKE concat('%',#{proName,jdbcType=VARCHAR},'%')
@@ -1008,6 +1009,8 @@
LEFT JOIN tb_shop_info AS info ON info.id = `order`.shop_id
<where>
info.`status`='1'
AND pro.is_combo = '1'
AND pro.type_enum = 'group'
AND (info.cities = #{cities} or info.districts = #{cities})
<if test="proName != null and proName != ''">
AND pro.`name` LIKE concat('%',#{proName,jdbcType=VARCHAR},'%')

View File

@@ -339,7 +339,7 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateStockById">
update tb_product_sku set stock_number = stock_number + #{num} where id = #{skuId}
update tb_product_sku set stock_number = stock_number - #{num} where id = #{skuId}
</update>
<update id="updateAddStockById">
update tb_product_sku set stock_number = stock_number + #{num} where id = #{skuId}

View File

@@ -399,7 +399,7 @@
select * from tb_params where id = 1
</select>
<select id="selectByUserId" resultType="java.util.Map">
<select id="selectByUserId" resultType="com.chaozhanggui.system.cashierservice.entity.vo.ShopUserListVo">
SELECT
u.id as memberId,
i.id as shopId,
@@ -410,7 +410,7 @@
u.level_consume as levelConsume,
u.amount,
u.`code`,
u.is_vip
u.is_vip as isVip
FROM
tb_shop_user u
left join tb_shop_info i on u.shop_id=i.id