Commit ee1de030 authored by tianyiming's avatar tianyiming

修改8750

parent d1234c69
...@@ -2906,10 +2906,17 @@ ...@@ -2906,10 +2906,17 @@
</where> </where>
) AS videoNum, ) AS videoNum,
( (
SELECT COUNT(1) FROM wl_equipment_specific ws SELECT
count( 1 )
FROM
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_equipment e ON e.id = ed.equipment_id
LEFT JOIN cb_org_usr ou ON ou.biz_org_code = es.biz_org_code
<where> <where>
e.is_iot = 1
<if test="bizOrgCode != null and bizOrgCode != ''"> <if test="bizOrgCode != null and bizOrgCode != ''">
ws.biz_org_code like concat(#{bizOrgCode}, '%') and es.biz_org_code like concat(#{bizOrgCode}, '%')
</if> </if>
</where> </where>
)AS equipNum )AS equipNum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment