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 afcf9aef
authored
Jan 11, 2022
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新去重统计
1 parent
8e90d663
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
View file @
afcf9ae
...
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</if>
</if>
<if
test=
"weCustomerList.tagIds !=null and weCustomerList.tagIds !=''"
>
<if
test=
"weCustomerList.tagIds !=null and weCustomerList.tagIds !=''"
>
AND wcr.tag_id in
AND wcr.tag_id
s
in
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
#{item}
</foreach>
</foreach>
...
@@ -138,7 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -138,7 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</if>
</if>
<if
test=
"weCustomerList.tagIds !=null and weCustomerList.tagIds !=''"
>
<if
test=
"weCustomerList.tagIds !=null and weCustomerList.tagIds !=''"
>
AND wcr.tag_id in
AND wcr.tag_id
s
in
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
#{item}
</foreach>
</foreach>
...
@@ -304,9 +304,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -304,9 +304,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
COUNT(DISTINCT wc.external_userid)
COUNT(DISTINCT wc.external_userid)
FROM
FROM
we_customer wc
we_customer wc
LEFT JOIN we_user wu ON wc.first_user_id=wu.user_id
LEFT JOIN we_flower_customer_tag_rel wfctr ON wfctr.del_flag=0 AND wfctr.external_userid=wc.external_userid AND wfctr.user_id=wc.first_user_id
LEFT JOIN we_tag wt ON wt.tag_id=wfctr.tag_id
<where>
<where>
<if
test=
"weCustomerList.gender !=null"
>
<if
test=
"weCustomerList.gender !=null"
>
AND wc.gender=#{weCustomerList.gender}
AND wc.gender=#{weCustomerList.gender}
...
@@ -330,15 +327,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -330,15 +327,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND wc.first_user_id=#{weCustomerList.firstUserId}
AND wc.first_user_id=#{weCustomerList.firstUserId}
</if>
</if>
<if
test=
"weCustomerList.departmentIds != null and weCustomerList.departmentIds !=''"
>
<if
test=
"weCustomerList.departmentIds.indexOf(',') != -1"
>
OR wu.department in
<foreach
item=
"item"
index=
"index"
collection=
"weCustomerList.departmentIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</if>
<if
test=
"weCustomerList.delFlag != null"
>
<if
test=
"weCustomerList.delFlag != null"
>
AND wc.del_flag = #{weCustomerList.delFlag}
AND wc.del_flag = #{weCustomerList.delFlag}
...
@@ -353,7 +341,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -353,7 +341,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</if>
</if>
<if
test=
"weCustomerList.tagIds !=null and weCustomerList.tagIds !=''"
>
<if
test=
"weCustomerList.tagIds !=null and weCustomerList.tagIds !=''"
>
AND w
t.tag_id
in
AND w
c.tag_ids
in
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
#{item}
</foreach>
</foreach>
...
...
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