商品查询修改

This commit is contained in:
wangguocheng
2024-05-17 10:28:43 +08:00
parent 7b259ba55f
commit 1c6ccb7d10
13 changed files with 247 additions and 38 deletions

View File

@@ -228,6 +228,10 @@
<select id="selectByOrderId" resultType="java.math.BigDecimal">
select IFNULL(sum(price_amount),0) from tb_order_detail where order_id=#{orderId} and `status`='refund'
</select>
<select id="selectByOrderIdAndSkuId"
resultType="com.chaozhanggui.system.cashierservice.entity.TbOrderDetail">
select * from tb_order_detail where order_id = #{orderId} and product_sku_id = #{skuId}
</select>
<update id="updateStatusByOrderIdAndStatus">
update tb_order_detail set status = #{status} where order_id = #{orderId} and status='unpaid'