| | |
| | | |
| | | //获取该笔订单的项目详情 |
| | | List<Map<String, Object>> refundDetails=refundDetails(ordersTotal); |
| | | |
| | | // 退款信息集合 |
| | | List<OrderItemRefundDto> refundList=new ArrayList<>(); |
| | | //退款二级子订单信息集合 |
| | |
| | | orderItemRefundDto.setRemarks(orderRefundDto.getRemarks()); |
| | | orderItemRefundDto.setRefundReason(orderRefundDto.getRefundReason()); |
| | | |
| | | if(OrderItemConstants.TYPE_PROMOTION.equals(orderItemRefundDto.getType()) || OrderItemConstants.CARD_BAG.equals(orderItemRefundDto.getType())){ |
| | | if(OrderItemConstants.TYPE_PROMOTION.equals(orderItemRefundDto.getType()) |
| | | || OrderItemConstants.CARD_BAG.equals(orderItemRefundDto.getType())){ |
| | | orderItemRefundDto.setRefundNum(0); |
| | | refundSonDetails= (List<Map<String, Object>>) refundDetail.get("list"); |
| | | orderItemSourceRefundDtos=new ArrayList<>(); |
| | |
| | | parameter.setRefundOperationType(BaseEntity.NO); |
| | | parameter.setRemarks(orderRefundDto.getRemarks()); |
| | | parameter.setRefundReason(orderRefundDto.getRefundReason()); |
| | | |
| | | //退款金额 |
| | | List<OrderPayMethodDto> refundPayMethodList = parameter.getPayMethodList(); |
| | | for(OrderPayMethodDto orderPayMethodDto:refundPayMethodList){ |
| | | orderPayMethodDto.setRefundNumberNo(orderPayMethodDto.getPayMethodNo()); |
| | | orderPayMethodDto.setRefundNumberName(orderPayMethodDto.getPayMethodName()); |
| | | orderPayMethodDto.setMoney(orderPayMethodDto.getPayTotal()); |
| | | } |
| | | |
| | | //调用退款处理退款逻辑 |
| | | return partRefund(ordersTotal,parameter,thirtApplication); |
| | | } |