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 116fb6a1
authored
Aug 06, 2021
by
孙喜旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户群相关字段修改
1 parent
2e5f22d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
22 deletions
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMemberMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMemberMapper.xml
View file @
116fb6a
...
...
@@ -11,29 +11,18 @@
wgm.join_time,
wgm.type,
wgm.join_scene,
CASE
WHEN wgm.type=1 THEN
(
SELECT wu.user_name FROM we_user wu
WHERE wu.user_id=wgm.user_id
<if
test=
"memberName != null and memberName != ''"
>
AND wu.user_name like concat('%', #{memberName}, '%')
</if>
)
WHEN wgm.type = 2 THEN
(
SELECT wc.name FROM we_customer wc
WHERE wc.external_userid=wgm.user_id
<if
test=
"memberName != null and memberName != ''"
>
AND wc.name like concat('%', #{memberName}, '%')
</if>
)
END memberName
wgm.name,
wgm.group_nick_name,
wgm.invitor_user_id
FROM
we_group_member wgm
<where>
<if
test=
"chatId != null "
>
and wgm.chat_id = #{chatId}
</if>
<if
test=
"memberName != null and memberName != ''"
>
HAVING memberName IS NOT NULL
</if>
<if
test=
"chatId != null "
>
and wgm.chat_id = #{chatId}
</if>
<if
test=
"name != null and name != ''"
>
AND wgm.name like concat('%', #{name}, '%')
</if>
</where>
</select>
...
...
@@ -44,8 +33,8 @@
wgm.join_time,
wgm.type,
wgm.join_scene,
(case when wu.head_image_url is null then wc.avatar else wu.head_image_url end) as member_avatar
,
(case when wu.
user_name is null then wc.name else wu.user_name end) as member_name
wgm.name as member_name
,
(case when wu.
head_image_url is null then wc.avatar else wu.head_image_url end) as member_avatar
FROM
we_group_member wgm
left join we_user wu on wu.user_id = wgm.user_id and wgm.type = 1
...
...
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