首页统计

This commit is contained in:
2025-10-01 05:05:23 +08:00
parent 66d09ef19c
commit da9bf97667
12 changed files with 792 additions and 25 deletions
@@ -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>