refactor(mall): 调整退款金额计算逻辑
- 在 ApiMallOrderInfoServiceImpl 中增加运费到退款金额
- 在 ApiMallTeamLeaderServiceImpl 中注释掉添加运费到退款金额的代码
| | |
| | | mallRefundEntity.setType(3); |
| | | } |
| | | mallRefundEntity.setState(3); |
| | | mallRefundEntity.setAmount(mallOrderItem.getAmount()); |
| | | mallRefundEntity.setAmount(mallOrderItem.getAmount().add(mallOrderInfo.getCarriage())); |
| | | mallRefundMapper.insert(mallRefundEntity); |
| | | }else{ |
| | | if(mallRefund.getState() == 1){ |
| | |
| | | |
| | | //退款退款金额 |
| | | BigDecimal refundAmount = mallRefundEntity.getAmount(); |
| | | refundAmount = refundAmount.add(mallOrderInfo.getCarriage()); |
| | | // refundAmount = refundAmount.add(mallOrderInfo.getCarriage()); |
| | | BigDecimal bb = new BigDecimal(100); |
| | | int refundMoney = refundAmount.multiply(bb).intValue(); |
| | | |