diff --git a/src/main/java/com/rymcu/vertical/entity/Notification.java b/src/main/java/com/rymcu/vertical/entity/Notification.java index 09cfba2..41fa17c 100644 --- a/src/main/java/com/rymcu/vertical/entity/Notification.java +++ b/src/main/java/com/rymcu/vertical/entity/Notification.java @@ -7,6 +7,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; +import java.util.Date; /** @@ -47,4 +48,9 @@ public class Notification implements Serializable,Cloneable { */ @Column(name = "has_read") private String hasRead; + /** + * 是否已读 + */ + @Column(name = "created_time") + private Date createdTime; } diff --git a/src/main/java/mapper/NotificationMapper.xml b/src/main/java/mapper/NotificationMapper.xml index 4d63bb7..f19d3c0 100644 --- a/src/main/java/mapper/NotificationMapper.xml +++ b/src/main/java/mapper/NotificationMapper.xml @@ -8,6 +8,7 @@ +