update 卖家实收金额 减去手续费
This commit is contained in:
@@ -829,6 +829,7 @@ public class OrderAndPayTask {
|
|||||||
.sellerId(leaseShop.getAuthId())
|
.sellerId(leaseShop.getAuthId())
|
||||||
.status(1)
|
.status(1)
|
||||||
.sellerEmail(leaseShop.getUserEmail())
|
.sellerEmail(leaseShop.getUserEmail())
|
||||||
|
.receivedAmount(totalRealAmount.subtract(totalRealAmount.multiply(leaseShop.getFeeRate())))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
reocrdList.add(build);
|
reocrdList.add(build);
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
SET balance = CASE
|
SET balance = CASE
|
||||||
<foreach collection="list" item="item">
|
<foreach collection="list" item="item">
|
||||||
WHEN pay_address = #{item.toAddress} AND pay_coin = #{item.fromSymbol} AND chain = #{item.fromChain} AND del = false
|
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>
|
</foreach>
|
||||||
ELSE balance
|
ELSE balance
|
||||||
END
|
END
|
||||||
|
|||||||
Reference in New Issue
Block a user