保誠-保戶業務員媒合平台
wayne
2021-11-15 4df0f1620fc0b3d393b7145660b6c4b0069d2b2a
[update] 將預約單的appointment_date定義為最近更新日期

修改1個檔案
20 ■■■■■ 已變更過的檔案
pamapi/src/main/java/com/pollex/pam/domain/Appointment.java 20 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/domain/Appointment.java
@@ -3,17 +3,13 @@
import java.io.Serializable;
import java.time.Instant;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.*;
import com.pollex.pam.enums.ContactStatusEnum;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
@EntityListeners(AuditingEntityListener.class)
@Entity
@Table(name = "appointment")
public class Appointment implements Serializable {
@@ -58,8 +54,9 @@
    @Column(name = "other_requirement")
    private String otherRequirement;
    
    @LastModifiedDate
    @Column(name = "appointment_date")
    private Instant appointmentDate = Instant.now();
    private Instant appointmentDate;
    
    @Column(name = "agent_no")
    private String agentNo;
@@ -178,9 +175,4 @@
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }
}