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 c9032c52
authored
Nov 02, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职员工查询
1 parent
17630298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
linkwe-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeUserMapper.xml
View file @
c9032c5
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
wu.user_name,
wu.user_name,
wu.dimission_time,
wu.dimission_time,
(SELECT GROUP_CONCAT(wd.`name`) FROM we_department wd WHERE wd.id=wu.department) as department,
(SELECT GROUP_CONCAT(wd.`name`) FROM we_department wd WHERE wd.id=wu.department) as department,
(SELECT COUNT(*) FROM we_
flower_customer_rel wfcr WHERE wfcr.
user_id=wu.user_id) as allocateCustomerNum,
(SELECT COUNT(*) FROM we_
customer wc WHERE wc.first_
user_id=wu.user_id) as allocateCustomerNum,
(SELECT COUNT(*) FROM we_group wg WHERE wg.`owner`=wu.user_id) as allocateGroupNum
(SELECT COUNT(*) FROM we_group wg WHERE wg.`owner`=wu.user_id) as allocateGroupNum
FROM
FROM
we_user wu
we_user wu
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<if
test=
"isActivate != null "
>
and wu.is_activate = #{isActivate}
</if>
<if
test=
"isActivate != null "
>
and wu.is_activate = #{isActivate}
</if>
<if
test=
"isAllocate != null "
>
and wu.is_allocate = #{isAllocate}
</if>
<if
test=
"isAllocate != null "
>
and wu.is_allocate = #{isAllocate}
</if>
</where>
</where>
)wuu WHERE allocateCustomerNum >0
and
allocateGroupNum>0
)wuu WHERE allocateCustomerNum >0
or
allocateGroupNum>0
</select>
</select>
...
...
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