Commit 4d0dfb7e by 18356073052

侧边栏 列表添加创建时间字段

1 parent fabb5c3d
package com.linkwechat.wecom.domain.vo; package com.linkwechat.wecom.domain.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date;
/** /**
* 聊天侧边栏 * 聊天侧边栏
* @author kewen * @author kewen
...@@ -39,4 +42,9 @@ public class WeChatSideVo { ...@@ -39,4 +42,9 @@ public class WeChatSideVo {
*/ */
private String collection; private String collection;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTime;
} }
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
wm.material_name, wm.material_name,
wm.material_url, wm.material_url,
wm.content, wm.content,
wc.media_type wc.media_type,
wcc.create_time
FROM FROM
we_chat_collection wcc we_chat_collection wcc
LEFT JOIN we_material wm ON wcc.material_id = wm.id LEFT JOIN we_material wm ON wcc.material_id = wm.id
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
WHERE WHERE
material_id = wci.material_id material_id = wci.material_id
AND user_id = #{userId} AND user_id = #{userId}
) collection ) collection,
wci.create_time
FROM FROM
we_chat_item wci we_chat_item wci
LEFT JOIN we_material wm ON wci.material_id = wm.id LEFT JOIN we_material wm ON wci.material_id = wm.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!