This commit is contained in:
牛叉闪闪
2024-09-06 10:23:21 +08:00
parent 9be00af38c
commit c2555d890f
5 changed files with 57 additions and 30 deletions

View File

@@ -205,7 +205,13 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateStatusByOrderId">
update tb_order_detail set status = #{status} where order_id = #{orderId}
update tb_order_detail set status = #{status}
<if test="radio != null">
,price_amount=price_amount*#{radio}
</if>
where order_id = #{orderId}
</update>