|
|
|
@ -101,9 +101,16 @@ public class EntrustServiceOrderApplicationService extends BaseApplicationServic |
|
|
|
entrustServiceOrderAggregate.edit(entrustServiceOrder); |
|
|
|
} else { |
|
|
|
//红娘拒接单 |
|
|
|
entrustServiceOrder.setOriginalStatus(existEntrustServiceOrder.getStatus()); |
|
|
|
entrustServiceOrder.setStatus(EntrustServiceStatusEnum.CANCELED); |
|
|
|
entrustServiceOrder.setPaymentStatus(EntrustServicePaymentStatusEnum.BEING_REFUNDED); |
|
|
|
entrustServiceOrder.setRemark("红娘拒接单"); |
|
|
|
BaseDomainEvent event = entrustServiceOrderAggregate.refuse(existEntrustServiceOrder); |
|
|
|
this.sendEvent(event); |
|
|
|
|
|
|
|
OrderRefundApplication orderRefundApplication = OrderRefundApplication.build(entrustServiceOrder.getId(), RefundOrderTypeEnum.ENTRUST_SERVICE, |
|
|
|
existEntrustServiceOrder.getPaidAmount(), existEntrustServiceOrder.getPaidAmount()); |
|
|
|
orderRefundApplication.setOperationStatus(OrderRefundApplicationStatus.UNAUDITED); |
|
|
|
orderRefundApplication.setStatus(OrderRefundApplicationStatus.UNAUDITED); |
|
|
|
cancelEntrustServiceOrderDomainService.handle(entrustServiceOrder, orderRefundApplication); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|