Browse Source

消息列表信息优化

anderx 7 years ago
parent
commit
e0feacb7d3

+ 1 - 1
src/main/java/com/goafanti/common/mapper/JtMessageConsumerMapper.xml

@@ -293,7 +293,7 @@
     </foreach>
   </insert>
   <select id="selectById" resultType="com.goafanti.message.bo.AppMessageBo">
-  	select a.id ,b.title,b.body,b.create_time as createTime,a.is_read as isRead from jt_message_consumer a
+  	select a.id ,b.title,b.body,b.send_time as sendTime,b.create_time as createTime,a.is_read as isRead from jt_message_consumer a
 	left join jt_message_producer b on a.message_id=b.id
 	where a.delete_sign=0 and b.delete_sign=0 and  b.is_draft=0 and b.is_send=1
 	and a.id=#{id,jdbcType=VARCHAR}

+ 1 - 1
src/main/java/com/goafanti/common/mapper/MessageFromSystemMapper.xml

@@ -694,7 +694,7 @@
 			</if>
    </select>
    <select id="appMessageList" resultType="com.goafanti.message.bo.AppMessageBo">
-   select a.id ,b.title,b.create_time as createTime,a.is_read as isRead from jt_message_consumer a
+   select a.id ,b.title,b.body,b.send_time as sendTime,b.create_time as createTime,a.is_read as isRead from jt_message_consumer a
 	left join jt_message_producer b on a.message_id=b.id
 	where a.delete_sign=0 and b.delete_sign=0 and  b.is_draft=0 and b.is_send=1
 	<if test="uid !=null and uid !=''">

+ 7 - 0
src/main/java/com/goafanti/message/bo/AppMessageBo.java

@@ -7,6 +7,7 @@ public class AppMessageBo {
 	private String title;
 	private String body;
 	private Date createTime;
+	private Date sendTime;
 	private Boolean isRead ;
 	public String getId() {
 		return id;
@@ -38,5 +39,11 @@ public class AppMessageBo {
 	public void setBody(String body) {
 		this.body = body;
 	}
+	public Date getSendTime() {
+		return sendTime;
+	}
+	public void setSendTime(Date sendTime) {
+		this.sendTime = sendTime;
+	}
 	
 }