[update] 修正預約單標記為已聯絡時,回傳最新資料
| | |
| | | http post : |
| | | http post : |
| | | http://localhost:8080/api/appointment/markAsContacted/{appointmentId} |
| | | |
| | | response body: |
| | | { |
| | | "id": 401, |
| | | "phone": "0912345678", |
| | | "email": "wayne@pollex.com.tw", |
| | | "contactType": "EMAIL", |
| | | "gender": "male", |
| | | "age": "under_20", |
| | | "job": "123", |
| | | "requirement": "å¥åº·èä¿é,ä¿å®å¥æª¢/è¦å", |
| | | "communicateStatus": "contacted", |
| | | "hopeContactTime": "'ææä¸,ææäº,ææä¸,ææå,ææäº,ææå
,æææ¥ã9:00~12:00,12:00~14:00,14:00~18:00,18:00~21:00'", |
| | | "otherRequirement": null, |
| | | "appointmentDate": "2021-12-21T08:13:50.154Z", |
| | | "lastModifiedDate": "2022-01-04T09:40:13.715Z", |
| | | "agentNo": "J149388015", |
| | | "customerId": 155, |
| | | "name": "123", |
| | | "consultantViewTime": "2021-12-24T07:27:48.681Z", |
| | | "consultantReadTime": null, |
| | | "contactTime": "2022-01-04T09:40:13.715Z", |
| | | "satisfactionScore": null, |
| | | "appointmentMemoList": [] |
| | | } |
| | |
| | | } |
| | | |
| | | @PostMapping("/markAsContacted/{appointmentId}") |
| | | public void markAsContacted(@PathVariable Long appointmentId) { |
| | | public AppointmentCustomerViewDTO markAsContacted(@PathVariable Long appointmentId) { |
| | | appointmentService.markAsContacted(appointmentId); |
| | | } |
| | | return appointmentService.getAppointmentDetail(appointmentId); |
| | | } |
| | | |
| | | @GetMapping("/getDetail/{appointmentId}") |
| | | public AppointmentCustomerViewDTO getAppointmentDetail(@PathVariable Long appointmentId) { |