商品查询修改
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user