|
@@ -563,7 +563,19 @@
|
|
|
<if test="registerEndTime != null and registerEndTime !='' ">
|
|
|
AND fs_user.create_time <= #{registerEndTime}
|
|
|
</if>
|
|
|
- <if test="tagIds != null and tagIds.length > 0">
|
|
|
+
|
|
|
+ <if test="isNullTag">
|
|
|
+ and (company_tag_user.tag_ids is null
|
|
|
+ <if test="tagIds != null and tagIds.length > 0">
|
|
|
+ or
|
|
|
+ <foreach collection="tagIds" item="item" index="index" open="(" separator="or" close=")">
|
|
|
+ CONCAT(',', company_tag_user.tag_ids, ',') LIKE CONCAT('%,', #{item}, ',%')
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="!isNullTag and tagIds != null and tagIds.length > 0">
|
|
|
AND
|
|
|
<foreach collection="tagIds" item="item" index="index" open="(" separator="or" close=")">
|
|
|
CONCAT(',', company_tag_user.tag_ids, ',') LIKE CONCAT('%,', #{item}, ',%')
|