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 441791e5
authored
Jan 11, 2022
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复标签查询bug
1 parent
afcf9aef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
441791e
...
@@ -449,7 +449,6 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -449,7 +449,6 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
List
<
WeTag
>
lodAddTag
=
weMakeCustomerTag
.
getAddTag
();
List
<
WeTag
>
lodAddTag
=
weMakeCustomerTag
.
getAddTag
();
if
(
CollectionUtil
.
isNotEmpty
(
addTag
)){
if
(
CollectionUtil
.
isNotEmpty
(
addTag
)){
//校验是否有标签在库里不存在
//校验是否有标签在库里不存在
List
<
WeTag
>
weTagList
=
iWeTagService
.
list
(
List
<
WeTag
>
weTagList
=
iWeTagService
.
list
(
new
LambdaQueryWrapper
<
WeTag
>()
new
LambdaQueryWrapper
<
WeTag
>()
.
in
(
WeTag:
:
getTagId
,
addTag
.
stream
().
map
(
WeTag:
:
getTagId
).
collect
(
Collectors
.
toList
()))
.
in
(
WeTag:
:
getTagId
,
addTag
.
stream
().
map
(
WeTag:
:
getTagId
).
collect
(
Collectors
.
toList
()))
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
View file @
441791e
...
@@ -80,10 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -80,10 +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_ids in
AND FIND_IN_SET(#{weCustomerList.tagIds},wcr.tag_ids)
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
</if>
<if
test=
"weCustomerList.beginTime !=null and weCustomerList.beginTime != '' and weCustomerList.endTime !='' and weCustomerList.endTime != null"
>
<if
test=
"weCustomerList.beginTime !=null and weCustomerList.beginTime != '' and weCustomerList.endTime !='' and weCustomerList.endTime != null"
>
AND date_format(wcr.first_add_time,'%Y-%m-%d') BETWEEN #{weCustomerList.beginTime} AND #{weCustomerList.endTime}
AND date_format(wcr.first_add_time,'%Y-%m-%d') BETWEEN #{weCustomerList.beginTime} AND #{weCustomerList.endTime}
...
@@ -138,10 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -138,10 +135,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_ids in
AND FIND_IN_SET(#{weCustomerList.tagIds},wcr.tag_ids)
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
</if>
<if
test=
"weCustomerList.beginTime !=null and weCustomerList.beginTime != '' and weCustomerList.endTime !='' and weCustomerList.endTime != null"
>
<if
test=
"weCustomerList.beginTime !=null and weCustomerList.beginTime != '' and weCustomerList.endTime !='' and weCustomerList.endTime != null"
>
AND date_format(wcr.first_add_time,'%Y-%m-%d') BETWEEN #{weCustomerList.beginTime} AND #{weCustomerList.endTime}
AND date_format(wcr.first_add_time,'%Y-%m-%d') BETWEEN #{weCustomerList.beginTime} AND #{weCustomerList.endTime}
...
@@ -341,10 +335,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -341,10 +335,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 wc.tag_ids in
AND FIND_IN_SET(#{weCustomerList.tagIds},wc.tag_ids)
<foreach
collection=
"weCustomerList.tagIds.split(',')"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
</if>
<if
test=
"weCustomerList.beginTime !=null and weCustomerList.beginTime != '' and weCustomerList.endTime !='' and weCustomerList.endTime != null"
>
<if
test=
"weCustomerList.beginTime !=null and weCustomerList.beginTime != '' and weCustomerList.endTime !='' and weCustomerList.endTime != null"
>
AND date_format(wc.first_add_time,'%Y-%m-%d') BETWEEN #{weCustomerList.beginTime} AND #{weCustomerList.endTime}
AND date_format(wc.first_add_time,'%Y-%m-%d') BETWEEN #{weCustomerList.beginTime} AND #{weCustomerList.endTime}
...
...
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