保誠-保戶業務員媒合平台
Jack
2022-01-14 9136e0b88e812095e145ebae6ef2fcb0cb7e5c8a
[ADD] 約訪通知新增欄位"預計約訪時間"
修改3個檔案
新增1個檔案
28 ■■■■■ 已變更過的檔案
pamapi/src/doc/sql/20220114_j.sql 2 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/doc/約訪通知API/發送約訪通知API.txt 4 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java 13 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java 9 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/doc/sql/20220114_j.sql
¤ñ¹ï·sÀÉ®×
@@ -0,0 +1,2 @@
-- appointment_notice_log æ–°å¢žç´„訪時間欄位
ALTER TABLE appointment_notice_log ADD interview_date timestamp null;
pamapi/src/doc/¬ù³X³qª¾API/µo°e¬ù³X³qª¾API.txt
@@ -4,6 +4,7 @@
message: ç™¼é€çš„æ–‡å­—內容
appointmentId : ç´„訪通知的預約單id
interviewDate: é è¨ˆç´„訪時段
request body:
@@ -11,5 +12,6 @@
    "message":"notice customer invterview time",
    "email":"pollex@gmail.com",
    "phone":"0912345678",
    "appointmentId": 385
    "appointmentId": 406,
    "interviewDate":"2022-11-01T08:00:00.000"
}
pamapi/src/main/java/com/pollex/pam/domain/AppointmentNoticeLog.java
@@ -2,6 +2,7 @@
import java.io.Serializable;
import java.time.Instant;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
@@ -50,8 +51,10 @@
    @CreatedDate
    @Column(name = "created_date", updatable = false)
//    @JsonIgnore
    private Instant createdDate = Instant.now();
    @Column(name = "interview_date")
    private Date interviewDate;
    public Long getId() {
        return id;
@@ -117,6 +120,14 @@
        this.createdDate = createdDate;
    }
    
    public Date getInterviewDate() {
        return interviewDate;
    }
    public void setInterviewDate(Date interviewDate) {
        this.interviewDate = interviewDate;
    }
    
    
    
pamapi/src/main/java/com/pollex/pam/service/dto/AppointmentNoticeSendDTO.java
@@ -1,5 +1,7 @@
package com.pollex.pam.service.dto;
import java.util.Date;
public class AppointmentNoticeSendDTO {
    
    private String message;
@@ -7,6 +9,7 @@
    private String email;
    private String phone;
//    private String noticeType;
    private Date interviewDate;
    
    public String getMessage() {
        return message;
@@ -38,6 +41,12 @@
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Date getInterviewDate() {
        return interviewDate;
    }
    public void setInterviewDate(Date interviewDate) {
        this.interviewDate = interviewDate;
    }