| | |
| | | } |
| | | } |
| | | |
| | | if(orderRefundDto.getIsThirdPartyRefund() != null){ |
| | | cancelOrder.setIsThirdPartyRefund(orderRefundDto.getIsThirdPartyRefund()); |
| | | } |
| | | |
| | | cancelOrder.setIsApproval(orderRefundDto.getIsApproval()); |
| | | cancelOrder.setIsRefund(orderRefundDto.getIsRefund()); |
| | | cancelOrder.setPlatformSource(orderRefundDto.getPlatformSource()); |
| | |
| | | if(CancelOrderDto.HIS_ASSISTANT.equals(cancelOrder.getPlatformSource())){ |
| | | //如果是his自动处理退款单原路退回 |
| | | //CRM的操作也在这里 |
| | | hisAssistantNoteList(ordersTotal,refundRecord,operationId,orderNodeBuilder); |
| | | hisAssistantNoteList(ordersTotal,refundRecord,operationId,orderNodeBuilder, cancelOrder.getIsThirdPartyRefund()); |
| | | } |
| | | |
| | | //撤销【保妥适会员】标签 |
| | |
| | | /** |
| | | * his助手原路退回退款单 |
| | | */ |
| | | public void hisAssistantNoteList(OrdersTotal ordersTotal,RefundRecord refundRecord,String operationId,StringBuilder orderNodeBuilder){ |
| | | public void hisAssistantNoteList(OrdersTotal ordersTotal,RefundRecord refundRecord,String operationId |
| | | ,StringBuilder orderNodeBuilder, Integer isThirdPartyRefund){ |
| | | OrderRefundNoteListDto orderRefundNoteListDto=new OrderRefundNoteListDto(); |
| | | orderRefundNoteListDto.setOperationId(operationId); |
| | | orderRefundNoteListDto.setOrderId(ordersTotal.getId()); |
| | |
| | | orderRefundNoteDto.setRefundName(refundRecordMethod.getRefundName()); |
| | | |
| | | orderRefundModelList.add(orderRefundNoteDto); |
| | | //是现金 |
| | | if(refundRecordMethod.getIsMoneyPay().equals(BaseEntity.YES)){ |
| | | //是现金 && 是第三方退款 |
| | | if(refundRecordMethod.getIsMoneyPay().equals(BaseEntity.YES) && isThirdPartyRefund == BaseEntity.YES){ |
| | | orderRefundNoteDtos.add(orderRefundNoteDto); |
| | | } |
| | | |