|
@@ -12,7 +12,7 @@
|
|
|
GROUP BY camera_id
|
|
|
</select>
|
|
|
<select id="findScenePlusNumByCameraIds" resultType="com.fdkankan.ucenter.vo.response.GroupByCount">
|
|
|
- SELECT camera_id as id,count(id) as count ,sum(space) as space ,max(create_time) as lastTime FROM t_scene_plus s left join t_scene_plus_ext e on s.id = e.plus_id
|
|
|
+ SELECT camera_id as id,count(s.id) as count ,sum(space) as space ,max(s.create_time) as lastTime FROM t_scene_plus s left join t_scene_plus_ext e on s.id = e.plus_id
|
|
|
WHERE s.rec_status = 'A'
|
|
|
and camera_id in
|
|
|
<foreach item="cameraId" collection="cameraIds" open="(" separator="," close=")">
|