修复标签查询bug

1 parent afcf9aef
......@@ -449,7 +449,6 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
List<WeTag> lodAddTag = weMakeCustomerTag.getAddTag();
if(CollectionUtil.isNotEmpty(addTag)){
//校验是否有标签在库里不存在
List<WeTag> weTagList = iWeTagService.list(
new LambdaQueryWrapper<WeTag>()
.in(WeTag::getTagId, addTag.stream().map(WeTag::getTagId).collect(Collectors.toList()))
......
......@@ -80,10 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
<if test="weCustomerList.tagIds !=null and weCustomerList.tagIds !=''">
AND wcr.tag_ids in
<foreach collection="weCustomerList.tagIds.split(',')" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
AND FIND_IN_SET(#{weCustomerList.tagIds},wcr.tag_ids)
</if>
<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}
......@@ -138,10 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
<if test="weCustomerList.tagIds !=null and weCustomerList.tagIds !=''">
AND wcr.tag_ids in
<foreach collection="weCustomerList.tagIds.split(',')" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
AND FIND_IN_SET(#{weCustomerList.tagIds},wcr.tag_ids)
</if>
<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}
......@@ -341,10 +335,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
<if test="weCustomerList.tagIds !=null and weCustomerList.tagIds !=''">
AND wc.tag_ids in
<foreach collection="weCustomerList.tagIds.split(',')" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
AND FIND_IN_SET(#{weCustomerList.tagIds},wc.tag_ids)
</if>
<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}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!