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 ac6c1c5b
authored
Jul 29, 2021
by
孙喜旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改sql不等于符号
1 parent
d5d32783
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
linkwe-wecom/src/main/resources/mapper/wecom/WeChatContactMsgMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeChatContactMsgMapper.xml
View file @
ac6c1c5
...
@@ -66,11 +66,11 @@
...
@@ -66,11 +66,11 @@
(
(
select to_list as receiver, `action` , msg_time, msg_type, contact
select to_list as receiver, `action` , msg_time, msg_type, contact
from we_chat_contact_msg
from we_chat_contact_msg
where from_id = ${fromId} and
<![CDATA[ room_id <> '' ]]>
where from_id = ${fromId} and
room_id
<>
''
union
union
select from_id as receiver, `action`, msg_time, msg_type, contact
select from_id as receiver, `action`, msg_time, msg_type, contact
from we_chat_contact_msg
from we_chat_contact_msg
where FIND_IN_SET(${fromId}, to_list) and
<![CDATA[ room_id <> '' ]]>
where FIND_IN_SET(${fromId}, to_list) and
room_id
<>
''
order by msg_time desc
order by msg_time desc
) as msg group by receiver order by msg.msg_time desc) t
) as msg group by receiver order by msg.msg_time desc) t
inner join we_group wg on t.receiver = wg.chat_id;
inner join we_group wg on t.receiver = wg.chat_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