|
@@ -74,7 +74,7 @@
|
|
|
|
|
|
<select id="sceneGroupBy" resultType="com.fdkankan.manage.vo.response.DataGroupByCount">
|
|
|
SELECT DATE_FORMAT(create_time,#{dateFormat}) AS groupKey, count(id) AS count ,
|
|
|
- <if test="tb == 't_scene_pro'">
|
|
|
+ <if test="tb == 't_scene_pro' or tb == 't_scene_plus' ">
|
|
|
scene_source as groupKey2
|
|
|
</if>
|
|
|
<if test="tb == 't_camera_detail'">
|
|
@@ -82,7 +82,7 @@
|
|
|
</if>
|
|
|
FROM ${tb}
|
|
|
WHERE rec_status = 'A'
|
|
|
- <if test="tb == 't_scene_pro'">
|
|
|
+ <if test="tb == 't_scene_pro' or tb == 't_scene_plus' ">
|
|
|
AND is_upgrade = 0
|
|
|
</if>
|
|
|
and create_time between #{startTime} and #{endTime}
|
|
@@ -91,7 +91,7 @@
|
|
|
|
|
|
<select id="sceneGroupByWeek" resultType="com.fdkankan.manage.vo.response.DataGroupByCount">
|
|
|
SELECT groupKey ,count(1) as count,
|
|
|
- <if test="tb == 't_scene_pro'">
|
|
|
+ <if test="tb == 't_scene_pro' or tb == 't_scene_plus' ">
|
|
|
scene_source as groupKey2
|
|
|
</if>
|
|
|
<if test="tb == 't_camera_detail'">
|
|
@@ -99,7 +99,7 @@
|
|
|
</if>
|
|
|
FROM (
|
|
|
select date_format(date_add(create_time,interval-(weekday(create_time ))day),'%Y-%m-%d') as groupKey,
|
|
|
- <if test="tb == 't_scene_pro'">
|
|
|
+ <if test="tb == 't_scene_pro' or tb == 't_scene_plus' ">
|
|
|
scene_source
|
|
|
</if>
|
|
|
<if test="tb == 't_camera_detail'">
|