update 卖家实收金额 减去手续费

This commit is contained in:
yyb
2026-01-26 10:33:27 +08:00
parent 718e6e74a5
commit 6a7df1ca6a
2 changed files with 2 additions and 1 deletions

View File

@@ -829,6 +829,7 @@ public class OrderAndPayTask {
.sellerId(leaseShop.getAuthId())
.status(1)
.sellerEmail(leaseShop.getUserEmail())
.receivedAmount(totalRealAmount.subtract(totalRealAmount.multiply(leaseShop.getFeeRate())))
.build();
reocrdList.add(build);

View File

@@ -94,7 +94,7 @@
SET balance = CASE
<foreach collection="list" item="item">
WHEN pay_address = #{item.toAddress} AND pay_coin = #{item.fromSymbol} AND chain = #{item.fromChain} AND del = false
THEN balance + #{item.realAmount}
THEN balance + #{item.receivedAmount}
</foreach>
ELSE balance
END