zhangjinli 3 years ago
parent b445382276
commit e2601adf72

@ -21,8 +21,8 @@
WHERE t1.id = ur.referenceId and ur.userId = u.id and u.openid = #{openid} ) as isCollected
</if>
from reference as t1
right join referenceTag as t2 on t1.id = t2.referenceId LEFT JOIN tag as t3 on t3.id = t2.tagId
right join referenceBrand as t4 on t1.id = t4.referenceId LEFT JOIN brand as t5 on t5.id = t4.brandId
LEFT JOIN referenceTag as t2 on t1.id = t2.referenceId LEFT JOIN tag as t3 on t3.id = t2.tagId
LEFT JOIN referenceBrand as t4 on t1.id = t4.referenceId LEFT JOIN brand as t5 on t5.id = t4.brandId
WHERE t1.id
<if test="tagIdList !=null and tagIdList.size()!=0 ">
and t1.id in (SELECT referenceId from referenceTag WHERE referenceTag.tagId in
@ -76,8 +76,8 @@
WHERE t1.id = ur.referenceId and ur.userId = u.id and u.openid = #{openid} ) as isCollected
</if>
from reference as t1
right join referenceTag as t2 on t1.id = t2.referenceId LEFT JOIN tag as t3 on t3.id = t2.tagId
right join referenceBrand as t4 on t1.id = t4.referenceId LEFT JOIN brand as t5 on t5.id = t4.brandId
LEFT join referenceTag as t2 on t1.id = t2.referenceId LEFT JOIN tag as t3 on t3.id = t2.tagId
LEFT join referenceBrand as t4 on t1.id = t4.referenceId LEFT JOIN brand as t5 on t5.id = t4.brandId
WHERE t1.id
<if test="tagIdList !=null and tagIdList.size()!=0 ">
and t1.id in (SELECT referenceId from referenceTag WHERE referenceTag.tagId in

Loading…
Cancel
Save