...
|
...
|
@@ -339,12 +339,20 @@ public class BuyerOrderCancelService { |
|
|
}
|
|
|
|
|
|
void transferPenalty(BuyerPenaltyCalResult bpcr){
|
|
|
if (bpcr.getPenaltyAmount().compareTo(BigDecimal.ZERO) <= 0) {
|
|
|
logger.info("in BuyerCancelAfterProcessTask call non need penalty, buyerUid {}, orderCode {}, skup {}",
|
|
|
buyerUid, orderCode, skup);
|
|
|
return;
|
|
|
}
|
|
|
TranseferCellNode transeferCellNode = new TranseferCellNode();
|
|
|
transeferCellNode.setUid(buyerUid);
|
|
|
transeferCellNode.setAmount(bpcr.getPenaltyAmount());
|
|
|
TransferMoneyRequest tmReq = TransferMoneyRequest.builder().buyerOrderCode(orderCode)
|
|
|
.type(transferCase.getCode()).transferCase(transferCase)
|
|
|
.transeferCellNode(transeferCellNode).build();
|
|
|
TransferMoneyRequest tmReq = TransferMoneyRequest.builder()
|
|
|
.buyerOrderCode(orderCode)
|
|
|
.type(transferCase.getCode())
|
|
|
.transferCase(transferCase)
|
|
|
.transeferCellNode(transeferCellNode)
|
|
|
.build();
|
|
|
logger.info("in BuyerCancelAfterProcessTask call begin paymentService.transferMon, buyerUid {}, orderCode {}, skup {} refundReqOfSeller {}",
|
|
|
buyerUid, orderCode, skup, tmReq );
|
|
|
transferService.transfer(tmReq);
|
...
|
...
|
|