|
|
@@ -275,7 +275,7 @@
|
|
|
</select>
|
|
|
<select id="selectDiskBadge" resultType="java.lang.Integer">
|
|
|
select sum( d.`state` = 1 ) AS count
|
|
|
- from iot_dvr_disk d
|
|
|
+ from iot_dvr_disk d inner join iot_server_info i on i.iot_code=d.iot_token
|
|
|
<if test="orgPath!=null and orgPath != ''">
|
|
|
inner join sys_org o on o.id = d.org_id
|
|
|
</if>
|