update 卖家实收金额 减去手续费
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user