Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e9a0ec41
authored
Feb 03, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
侧边栏 列表添加创建时间字段
1 parent
d4b9fac5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/vo/WeChatSideVo.java
linkwe-wecom/src/main/resources/mapper/wecom/WeChatCollectionMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeChatItemMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/vo/WeChatSideVo.java
View file @
e9a0ec4
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
;
}
}
linkwe-wecom/src/main/resources/mapper/wecom/WeChatCollectionMapper.xml
View file @
e9a0ec4
...
@@ -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
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeChatItemMapper.xml
View file @
e9a0ec4
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment