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 fa2d81ca
authored
Jan 26, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改了客户查询方法
1 parent
b47b38a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
View file @
fa2d81c
...
@@ -145,13 +145,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -145,13 +145,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</if>
<if
test=
"departmentIds != null and departmentIds !=''"
>
<if
test=
"departmentIds != null and departmentIds !=''"
>
<if
test=
"departmentIds.indexOf(',') != -1"
>
<if
test=
"departmentIds.indexOf(',') != -1"
>
AND
wu.department in
OR
wu.department in
<foreach
item=
"item"
index=
"index"
collection=
"departmentIds.split(',')"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"departmentIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"departmentIds.indexOf(',') == -1"
>
<if
test=
"departmentIds.indexOf(',') == -1"
>
AND
wu.department=#{departmentIds}
OR
wu.department=#{departmentIds}
</if>
</if>
</if>
</if>
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
View file @
fa2d81c
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
wg.notice,
wg.notice,
wu.user_name as groupLeaderName,
wu.user_name as groupLeaderName,
(SELECT COUNT(*) FROM we_group_member wgm WHERE wgm.chat_id=wg.chat_id) as memberNum,
(SELECT COUNT(*) FROM we_group_member wgm WHERE wgm.chat_id=wg.chat_id) as memberNum,
wg.status
wg.status,
wg.`owner`
FROM
FROM
we_group wg
we_group wg
LEFT JOIN we_user wu ON wg.`owner`=wu.user_id
LEFT JOIN we_user wu ON wg.`owner`=wu.user_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