Commit c3db7961 authored by 张森's avatar 张森

29857 【中心级】一张图全景监控>设备管理>消防车辆,点击跳转二级页面上,列表的部分数据的换流站字段错误显示成了部门名称,未归入换流站

parent c7518606
......@@ -732,7 +732,7 @@
ABS(d.fireCar - d.jgxfc) AS fjgxfc
FROM (
SELECT
wc.`biz_org_name`,
o.`biz_org_name`,
count(1) AS fireCar,
SUM(IF(wc.use_type='自购', 1, 0)) AS zgCar,
SUM(IF(wc.use_type='租赁', 1, 0)) AS zlCar,
......@@ -740,12 +740,13 @@
IFNULL( SUM(IF(we.code LIKE CONCAT( '2103', '%' ), 1, 0 ) ), 0 ) AS jgjqr
FROM `wl_car` wc
LEFT JOIN wl_equipment we ON we.id = wc.equipment_id
<where>
LEFT JOIN cb_org_usr o ON o.biz_org_code = LEFT ( wc.biz_org_code, 18 )
<where>
<if test="bizOrgCode != null and bizOrgCode != ''">
wc.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</where>
GROUP BY wc.biz_org_code
GROUP BY LEFT ( wc.biz_org_code, 18 )
) d
<if test="sortField != null and sortField != ''">
<choose>
......
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