|
|
@@ -93,7 +93,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="countDeviceNums" resultType="java.util.Map">
|
|
|
- select category_id as categoryId, count(1) as nums
|
|
|
+ select category_id as categoryId, CAST(COUNT(1) AS CHAR) as nums
|
|
|
from iot_device d
|
|
|
inner join sys_org o on o.id = d.org_id
|
|
|
where d.deleted = 0
|
|
|
@@ -103,21 +103,21 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="countDeviceNums2" resultType="java.util.Map">
|
|
|
- select 'sensor' as categoryId, count(1) as nums
|
|
|
+ select 'sensor' as categoryId, CAST(COUNT(1) AS CHAR) as nums
|
|
|
from iot_sensor s
|
|
|
inner join sys_org o on o.id = s.org_id
|
|
|
where s.deleted = 0
|
|
|
and o.deleted = 0
|
|
|
and org_path like concat(#{orgPath}, '%')
|
|
|
union all
|
|
|
- select 'channel' as categoryId, count(1) as nums
|
|
|
+ select 'channel' as categoryId, CAST(COUNT(1) AS CHAR) as nums
|
|
|
from iot_dvr_channel c
|
|
|
inner join sys_org o on o.id = c.org_id
|
|
|
where c.deleted = 0
|
|
|
and o.deleted = 0
|
|
|
and org_path like concat(#{orgPath}, '%')
|
|
|
union all
|
|
|
- select 'disk' as categoryId, count(1) as nums
|
|
|
+ select 'disk' as categoryId, CAST(COUNT(1) AS CHAR) as nums
|
|
|
from iot_dvr_disk d
|
|
|
inner join sys_org o on o.id = d.org_id
|
|
|
where d.deleted = 0
|
|
|
@@ -126,7 +126,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="countSensorNums" resultType="java.util.Map">
|
|
|
- select s.device_type as deviceType, count(1) as nums
|
|
|
+ select s.device_type as deviceType, CAST(COUNT(1) AS CHAR) as nums
|
|
|
from iot_sensor s
|
|
|
inner join sys_org o on o.id = s.org_id
|
|
|
where o.deleted = 0
|
|
|
@@ -136,7 +136,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectVideoDaysStorage" resultType="java.util.Map">
|
|
|
- select c.plan_days as planDays, sum(c.plan_days != c.real_days) as nums
|
|
|
+ select CAST(c.plan_days AS CHAR) as planDays,CAST(sum(c.plan_days != c.real_days) AS CHAR) as nums
|
|
|
from mediator_video_days_check c
|
|
|
inner join sys_org o on o.id = c.org_id
|
|
|
where o.deleted = 0
|