|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="groupByCameraId" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
<select id="groupByCameraId" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
- select camera_id as groupKey ,count(1) as dataCount from t_scene_plus where rec_status = 'A'
|
|
|
|
|
|
+ select camera_id as groupKey ,count(1) as dataCount from t_scene_plus where rec_status = 'A' and other_type is null
|
|
and camera_id in
|
|
and camera_id in
|
|
<foreach item="cameraId" collection="cameraIds" open="(" separator="," close=")">
|
|
<foreach item="cameraId" collection="cameraIds" open="(" separator="," close=")">
|
|
#{cameraId}
|
|
#{cameraId}
|
|
@@ -20,7 +20,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="groupByType" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
<select id="groupByType" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
- select scene_source as groupKey ,count(1) as dataCount from t_scene_plus where rec_status = 'A'
|
|
|
|
|
|
+ select scene_source as groupKey ,count(1) as dataCount from t_scene_plus where rec_status = 'A' and other_type is null
|
|
and camera_id in
|
|
and camera_id in
|
|
<foreach item="cameraId" collection="cameraIds" open="(" separator="," close=")">
|
|
<foreach item="cameraId" collection="cameraIds" open="(" separator="," close=")">
|
|
#{cameraId}
|
|
#{cameraId}
|