| | |
| | | |
| | | //获取该笔订单的项目详情 |
| | | List<Map<String, Object>> refundDetails=refundDetails(ordersTotal); |
| | | |
| | | // 退款信息集合 |
| | | List<OrderItemRefundDto> refundList=new ArrayList<>(); |
| | | //退款二级子订单信息集合 |
| | |
| | | OrderItemRefundDto orderItemRefundDto; |
| | | OrderItemSourceRefundDto orderItemSourceRefundDto; |
| | | for (Map<String, Object> refundDetail : refundDetails) { |
| | | orderItemRefundDto=new OrderItemRefundDto(); |
| | | orderItemRefundDto = new OrderItemRefundDto(); |
| | | orderItemRefundDto.setOrderItemId(String.valueOf(refundDetail.get("id"))); |
| | | orderItemRefundDto.setType(String.valueOf(refundDetail.get("type"))); |
| | | |
| | |
| | | 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); |
| | | } |