退款回滚库存
This commit is contained in:
@@ -929,4 +929,10 @@
|
||||
and trade_day = #{day}
|
||||
group by shop_id,product_id
|
||||
</select>
|
||||
|
||||
<update id="updateStockById">
|
||||
update tb_product
|
||||
set stock_number = stock_number - #{number,jdbcType=INTEGER}
|
||||
where id = #{productId}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user