保誠-保戶業務員媒合平台
wayne
2022-01-04 c80ac81d2a6f4e4d596a9d051abc9aa453313343
[update] 修正預約單標記為已聯絡時,回傳最新資料

修改2個檔案
28 ■■■■■ 已變更過的檔案
pamapi/src/doc/預約單/標記為已聯絡API.txt 25 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java 3 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/doc/¹w¬ù³æ/¼Ð°O¬°¤wÁpµ¸API.txt
@@ -1,2 +1,27 @@
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": []
}
pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java
@@ -44,8 +44,9 @@
    }
    @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}")