From 0edc3c7a79925f40ab629e097e41b48dfd63a5b5 Mon Sep 17 00:00:00 2001 From: x ronger Date: Thu, 23 Jan 2020 00:39:43 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E9=80=9A=E7=9F=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/rymcu/vertical/entity/Notification.java | 6 ++++++ src/main/java/mapper/NotificationMapper.xml | 1 + 2 files changed, 7 insertions(+) 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 @@ +