再改改
This commit is contained in:
parent
8af8bd6bcf
commit
4e9d6807d6
@ -31,7 +31,8 @@
|
|||||||
<if test="endTime!= null">
|
<if test="endTime!= null">
|
||||||
and create_time <= #{endTime}
|
and create_time <= #{endTime}
|
||||||
</if>
|
</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">
|
<if test="startTime!= null">
|
||||||
and create_time >= #{startTime}
|
and create_time >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
@ -134,6 +135,13 @@
|
|||||||
<if test="endTime!= null">
|
<if test="endTime!= null">
|
||||||
and create_time <= #{endTime}
|
and create_time <= #{endTime}
|
||||||
</if>
|
</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 <= #{endTime}
|
||||||
|
</if>)
|
||||||
group by member_id
|
group by member_id
|
||||||
)a
|
)a
|
||||||
</select>
|
</select>
|
||||||
@ -173,12 +181,6 @@
|
|||||||
from member_video mv
|
from member_video mv
|
||||||
left join face f on f.id = mv.face_id
|
left join face f on f.id = mv.face_id
|
||||||
where f.scenic_id = #{scenicId}
|
where f.scenic_id = #{scenicId}
|
||||||
<if test="startTime!= null">
|
|
||||||
and f.create_at >= #{startTime}
|
|
||||||
</if>
|
|
||||||
<if test="endTime!= null">
|
|
||||||
and f.create_at <= #{endTime}
|
|
||||||
</if>
|
|
||||||
and f.member_id in (select member_id from statistics where type = 10
|
and f.member_id in (select member_id from statistics where type = 10
|
||||||
<if test="startTime!= null">
|
<if test="startTime!= null">
|
||||||
and create_time >= #{startTime}
|
and create_time >= #{startTime}
|
||||||
@ -186,7 +188,7 @@
|
|||||||
<if test="endTime!= null">
|
<if test="endTime!= null">
|
||||||
and create_time <= #{endTime}
|
and create_time <= #{endTime}
|
||||||
</if>)
|
</if>)
|
||||||
group by member_id
|
group by mv.member_id
|
||||||
)a
|
)a
|
||||||
</select>
|
</select>
|
||||||
<select id="countTotalVisitorOfMember" resultType="java.lang.Integer">
|
<select id="countTotalVisitorOfMember" resultType="java.lang.Integer">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user