| | |
| | | @Autowired |
| | | AppointmentRepository appointmentRepository; |
| | | |
| | | @Autowired |
| | | PersonalNotificationService personalNotificationService; |
| | | |
| | | |
| | | public void sendNotice(AppointmentNoticeSendDTO dto) { |
| | | String subject = "保誠媒合平台系統通知:預約通知"; |
| | |
| | | }if(StringUtils.hasText(dto.getPhone())) { |
| | | sendMsgService.sendMsgBySMS(dto.getPhone(), dto.getMessage()); |
| | | } |
| | | |
| | | List<AppointmentNoticeLog> noticeLogs = |
| | | appointmentNoticeLogService.findByAppointmentId(dto.getAppointmentId()); |
| | | if(noticeLogs.size()==0) { |
| | |
| | | } |
| | | |
| | | appointmentNoticeLogService.create(dto); |
| | | personalNotificationService.createSendNoticeToCustomer(dto.getAppointmentId()); |
| | | } |
| | | |
| | | } |