退款回滚库存

This commit is contained in:
GYJ
2024-06-24 18:00:25 +08:00
parent fa2668ed1c
commit b66a89b143
3 changed files with 22 additions and 4 deletions

View File

@@ -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>