|
|
@ -72,11 +72,11 @@ |
|
|
|
|
|
|
|
<sql id="tagSelectSql"> |
|
|
|
<if test="query.tagQueryList!=null and query.tagQueryList.size > 0"> |
|
|
|
<foreach collection="query.tagQueryList" item="tagQuery" index="i" open="(" close=")" separator=","> |
|
|
|
<foreach collection="query.tagQueryList" item="tagQuery" index="i" separator=","> |
|
|
|
and ${tagQuery.sqlColumn} in |
|
|
|
( |
|
|
|
select target_id from tag_data |
|
|
|
left join tag_info on tag_data.tag_id = tag_info.id and del_flag=0 |
|
|
|
left join tag_info on tag_data.tag_id = tag_info.id and tag_info.del_flag=0 |
|
|
|
where tag_data.del_flag = 0 |
|
|
|
<if test="tagQuery.tagIds!=null and tagQuery.tagIds.size > 0"> |
|
|
|
and tag_id in |
|
|
@ -84,8 +84,8 @@ |
|
|
|
#{selectId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="tagQuery.targetName!=null and tagQuery.targetName!=''"> |
|
|
|
and target_name like concat('%',#{tagQuery.targetName},'%') |
|
|
|
<if test="tagQuery.tagName!=null and tagQuery.tagName!=''"> |
|
|
|
and tag_info.tag_name like concat('%',#{tagQuery.tagName},'%') |
|
|
|
</if> |
|
|
|
and tag_data.target_type = #{tagQuery.targetType} |
|
|
|
group by tag_data.target_id |
|
|
|