|
|
@ -36,12 +36,12 @@
|
|
|
|
WHERE t1.id in
|
|
|
|
WHERE t1.id in
|
|
|
|
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
|
|
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
|
|
<if test="tagIdList !=null and tagIdList.size()!=0 ">
|
|
|
|
<if test="tagIdList !=null and tagIdList.size()!=0 ">
|
|
|
|
and t1.id in (SELECT taskId from referenceTag WHERE referenceTag.tagId in
|
|
|
|
and t1.id in (SELECT taskId from taskTag WHERE taskTag.tagId in
|
|
|
|
<foreach collection="tagIdList" index="index" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
|
|
<foreach collection="tagIdList" index="index" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="brandIdList !=null and brandIdList.size()!=0 ">
|
|
|
|
<if test="brandIdList !=null and brandIdList.size()!=0 ">
|
|
|
|
and t1.id in (SELECT referenceId from referenceBrand WHERE referenceBrand.brandId in
|
|
|
|
and t1.id in (SELECT referenceId from taskBrand WHERE taskBrand.brandId in
|
|
|
|
<foreach collection="brandIdList" index="index" item="item" open="(" separator="," close=")">#{item}
|
|
|
|
<foreach collection="brandIdList" index="index" item="item" open="(" separator="," close=")">#{item}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
)
|
|
|
|
)
|
|
|
|