✨ 通知功能
This commit is contained in:
parent
9329ec074d
commit
0edc3c7a79
@ -7,6 +7,7 @@ import javax.persistence.GeneratedValue;
|
|||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,4 +48,9 @@ public class Notification implements Serializable,Cloneable {
|
|||||||
*/
|
*/
|
||||||
@Column(name = "has_read")
|
@Column(name = "has_read")
|
||||||
private String hasRead;
|
private String hasRead;
|
||||||
|
/**
|
||||||
|
* 是否已读
|
||||||
|
*/
|
||||||
|
@Column(name = "created_time")
|
||||||
|
private Date createdTime;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<result column="data_id" property="dataId"></result>
|
<result column="data_id" property="dataId"></result>
|
||||||
<result column="data_summary" property="dataSummary"></result>
|
<result column="data_summary" property="dataSummary"></result>
|
||||||
<result column="has_read" property="hasRead"></result>
|
<result column="has_read" property="hasRead"></result>
|
||||||
|
<result column="created_time" property="createdTime"></result>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<select id="selectUnreadNotifications" resultMap="BaseResultMapper">
|
<select id="selectUnreadNotifications" resultMap="BaseResultMapper">
|
||||||
select * from vertical_notification where has_read = '0' and id_user = #{idUser}
|
select * from vertical_notification where has_read = '0' and id_user = #{idUser}
|
||||||
|
Loading…
Reference in New Issue
Block a user