首页统计
This commit is contained in:
@@ -115,4 +115,19 @@
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
|
||||
<!-- 基于二维码表按租户反查景区ID(容错方案) -->
|
||||
<select id="findTourismIdsByTenantIdsFromQrcodes" resultType="java.lang.Long">
|
||||
SELECT DISTINCT q.tourism_id
|
||||
FROM qrcodes q
|
||||
WHERE q.is_del = 0
|
||||
AND q.tourism_id IS NOT NULL
|
||||
<if test="tenantIds != null and tenantIds.size > 0">
|
||||
AND q.tenant_id IN
|
||||
<foreach collection="tenantIds" item="tid" open="(" separator="," close=")">
|
||||
#{tid}
|
||||
</foreach>
|
||||
</if>
|
||||
ORDER BY q.tourism_id DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user