退菜修改

This commit is contained in:
2024-10-22 09:31:58 +08:00
parent 0c7d9a7c7e
commit 8053c84331
2 changed files with 6 additions and 3 deletions

View File

@@ -37,6 +37,6 @@ public interface TbOrderInfoMapper extends BaseMapper<TbOrderInfo> {
@Update("update tb_order_info set settlement_amount=settlement_amount-#{priceAmount}, pack_fee=pack_fee-#{packAmount}," +
"order_amount=order_amount-#{priceAmount}, amount=amount-#{priceAmount}" +
" where id=#{orderId} and origin_amount-#{priceAmount} >= 0 and order_amount > 0")
" where id=#{orderId} and origin_amount-#{priceAmount} >= 0 and order_amount-#{priceAmount} >= 0")
int updateOrderAmount(Integer orderId, BigDecimal priceAmount, BigDecimal packAmount);
}