| | |
| | | private final AppointmentOrderMapper appointmentOrderMapper; |
| | | private final PostApprovalOrchestrationService postApprovalOrchestrationService; |
| | | |
| | | @Async |
| | | @Async("applicationTaskExecutor") |
| | | @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT) |
| | | public void handleApproved(AppointmentApprovedEvent event) { |
| | | AppointmentOrder order = appointmentOrderMapper.selectById(event.orderId()); |
| | |
| | | postApprovalOrchestrationService.onOrderFullyApproved(order); |
| | | } |
| | | |
| | | @Async |
| | | @Async("applicationTaskExecutor") |
| | | @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT) |
| | | public void handleRejected(AppointmentRejectedEvent event) { |
| | | AppointmentOrder order = appointmentOrderMapper.selectById(event.orderId()); |