| | |
| | | if(orderItemRefundDto.getRefundNum() > surplusNum){ |
| | | throw new TipsException("退款数量与可退数量不符[02]!"); |
| | | } |
| | | //替换成子单的剩余数量 |
| | | surplusNum = orderItem.getBuyNum() - orderItem.getHasReNum(); |
| | | //替换成子单的剩余数量,2023-06-15因为做用户卡包退款原因,先屏掉这个 |
| | | //surplusNum = orderItem.getBuyNum() - orderItem.getHasReNum(); |
| | | }else{ |
| | | buyNum = orderItem.getBuyNum(); |
| | | //替换成子单的剩余数量 |
| | |
| | | List<PayMethodVo> payMethodVoList = refundMapper.getConsumePayTwoGroupByNumberNo(orderItemSon.getId()); |
| | | |
| | | //获取该子单已退的总金额 |
| | | RefundRecordItemSource refundRecordItemSource = RefundTool.getTwoAlreadyRefundTotal(orderItemSon.getId(),commonService); |
| | | RefundRecordItemSource refundRecordItemSource = RefundTool.getTwoAlreadyRefundTotal(orderItemSon.getId(),null,null,commonService); |
| | | |
| | | //计算退款方式金额 |
| | | DistributionRedundVo distributionRedundVo = PaymentCountTool.countMakeWay(orderItemSon.getId(),orderItemSon.getActualTotal(),refundRecordItemSource.getOccupyRefundTotal() |