保誠-保戶業務員媒合平台
wayne
2022-02-17 a3716f72066d25d745f4d5103ff23a553c3e102b
pamapi/src/main/java/com/pollex/pam/domain/Satisfaction.java
@@ -12,6 +12,8 @@
import javax.persistence.Id;
import javax.persistence.Table;
import com.pollex.pam.enums.PersonalNotificationRoleEnum;
import com.pollex.pam.enums.SatisfactionTypeEnum;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
@@ -21,16 +23,16 @@
@Entity
@Table(name = "satisfaction")
public class Satisfaction implements Serializable {
   /**
    *
    *
    */
   private static final long serialVersionUID = 1L;
   @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
   @CreatedDate
    @Column(name = "created_date", updatable = false)
    @JsonIgnore
@@ -40,19 +42,26 @@
    @Column(name = "last_modified_date")
    @JsonIgnore
    private Instant lastModifiedDate = Instant.now();
    @Column(name = "customer_id")
    private Long customerId;
    @Column(name = "agent_no")
    private String agentNo;
    @Enumerated(EnumType.STRING)
    @Column(name = "status")
    private SatisfactionStatusEnum status;
    @Column(name = "score")
    private Float score;
    @Column(name = "appointment_id")
    private Long appointmentId;
    @Enumerated(EnumType.STRING)
    @Column(name = "type")
    private SatisfactionTypeEnum type;
   public Long getId() {
      return id;
@@ -109,6 +118,20 @@
   public void setScore(Float score) {
      this.score = score;
   }
    public Long getAppointmentId() {
        return appointmentId;
    }
    public void setAppointmentId(Long appointmentId) {
        this.appointmentId = appointmentId;
    }
    public SatisfactionTypeEnum getType() {
        return type;
    }
    public void setType(SatisfactionTypeEnum type) {
        this.type = type;
    }
}