再改改

This commit is contained in:
Jerry Yan 2025-04-08 01:28:12 +08:00
parent 8af8bd6bcf
commit 4e9d6807d6

View File

@ -31,7 +31,8 @@
<if test="endTime!= null">
and create_time &lt;= #{endTime}
</if>
and member_id in (select member_id from statistics where type = 1
and morph_id is not null
and member_id in (select member_id from statistics where type = 10
<if test="startTime!= null">
and create_time >= #{startTime}
</if>
@ -134,6 +135,13 @@
<if test="endTime!= null">
and create_time &lt;= #{endTime}
</if>
and member_id in (select member_id from statistics where type = 10
<if test="startTime!= null">
and create_time >= #{startTime}
</if>
<if test="endTime!= null">
and create_time &lt;= #{endTime}
</if>)
group by member_id
)a
</select>
@ -173,12 +181,6 @@
from member_video mv
left join face f on f.id = mv.face_id
where f.scenic_id = #{scenicId}
<if test="startTime!= null">
and f.create_at >= #{startTime}
</if>
<if test="endTime!= null">
and f.create_at &lt;= #{endTime}
</if>
and f.member_id in (select member_id from statistics where type = 10
<if test="startTime!= null">
and create_time >= #{startTime}
@ -186,7 +188,7 @@
<if test="endTime!= null">
and create_time &lt;= #{endTime}
</if>)
group by member_id
group by mv.member_id
)a
</select>
<select id="countTotalVisitorOfMember" resultType="java.lang.Integer">