You've already forked FrameTour-BE
统计修一修
This commit is contained in:
@ -165,16 +165,17 @@
|
|||||||
select ifnull(count(1),0) as count
|
select ifnull(count(1),0) as count
|
||||||
from(
|
from(
|
||||||
select 1
|
select 1
|
||||||
from member_video mv
|
from video v
|
||||||
left join face f on f.id = mv.face_id
|
left join task t on v.task_id = t.id
|
||||||
|
left join face f on f.id = t.face_id
|
||||||
where f.scenic_id = #{scenicId}
|
where f.scenic_id = #{scenicId}
|
||||||
<if test="startTime!= null">
|
<if test="startTime!= null">
|
||||||
and mv.create_time >= #{startTime}
|
and v.create_time >= #{startTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="endTime!= null">
|
<if test="endTime!= null">
|
||||||
and mv.create_time <= #{endTime}
|
and v.create_time <= #{endTime}
|
||||||
</if>
|
</if>
|
||||||
group by mv.member_id
|
group by f.member_id
|
||||||
)a
|
)a
|
||||||
</select>
|
</select>
|
||||||
<select id="countTotalVisitorOfMember" resultType="java.lang.Integer">
|
<select id="countTotalVisitorOfMember" resultType="java.lang.Integer">
|
||||||
|
Reference in New Issue
Block a user