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