保誠-保戶業務員媒合平台
wayne
2021-12-03 82e2a62e7c90cc191f9e2ebc569fe3a3663b68b0
pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
@@ -5,7 +5,9 @@
import javax.persistence.*;
import com.pollex.pam.enums.AppointmentStatusEnum;
import com.pollex.pam.enums.ContactStatusEnum;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
@@ -54,9 +56,13 @@
   @Column(name = "other_requirement")
    private String otherRequirement;
    @LastModifiedDate
   @Column(name = "appointment_date")
    @CreatedDate
   @Column(name = "appointment_date", updatable = false)
    private Instant appointmentDate;
    @LastModifiedDate
    @Column(name = "last_modified_date")
    private Instant lastModifiedDate;
   @Column(name = "agent_no")
    private String agentNo;
@@ -69,6 +75,10 @@
    @Column(name = "consultant_read_time")
    private Instant consultantReadTime;
    @Enumerated(value = EnumType.STRING)
    @Column(name = "status")
    private AppointmentStatusEnum status;
   public Long getId() {
      return id;
@@ -197,4 +207,20 @@
    public void setConsultantReadTime(Instant consultantReadTime) {
        this.consultantReadTime = consultantReadTime;
    }
    public AppointmentStatusEnum getStatus() {
        return status;
    }
    public void setStatus(AppointmentStatusEnum status) {
        this.status = status;
    }
    public Instant getLastModifiedDate() {
        return lastModifiedDate;
    }
    public void setLastModifiedDate(Instant lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }
}