...
|
...
|
@@ -516,10 +516,12 @@ public class SellerOrderCancelService { |
|
|
if (Objects.nonNull(penaltyResult)) {
|
|
|
// 退剩余保证金给卖家
|
|
|
BigDecimal backEarnestMoney = penaltyResult.getLeftAmount();
|
|
|
try {
|
|
|
refundEarnestMoney(sellerOrder, targetSOStatus,backEarnestMoney);
|
|
|
} catch (Exception e) {
|
|
|
logger.warn("返回剩余保证金失败, sellerUid is {}, skup is {}, err is {}", sellerUid, skup, e.getMessage());
|
|
|
if(backEarnestMoney.compareTo(BigDecimal.ZERO) > 0){
|
|
|
try {
|
|
|
refundEarnestMoney(sellerOrder, targetSOStatus,backEarnestMoney);
|
|
|
} catch (Exception e) {
|
|
|
logger.warn("返回剩余保证金失败, sellerUid is {}, skup is {}, err is {}", sellerUid, skup, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
// 赔偿给买家的保证金金额
|
|
|
BigDecimal penaltyAmount = penaltyResult.getPenaltyAmount().subtract(penaltyResult.getYhServiceAmount());
|
...
|
...
|
|