Commit 997c92ca authored by 李秀明's avatar 李秀明

fix: 消防车辆弹窗-消防车辆产权类型&消防车辆结构类型为根据bizOrgCode过滤

parent c6c58220
...@@ -177,8 +177,15 @@ ...@@ -177,8 +177,15 @@
<select id="getCarUsedInfo" resultType="Map"> <select id="getCarUsedInfo" resultType="Map">
SELECT SELECT
( SELECT COUNT( 1 ) FROM wl_car WHERE use_type = '自购' ) AS zg, SUM(CASE WHEN t.use_type = '自购' THEN 1 ELSE 0 END) AS zg,
( SELECT COUNT( 1 ) FROM wl_car WHERE use_type = '租赁' ) AS zl SUM(CASE WHEN t.use_type = '租赁' THEN 1 ELSE 0 END) AS zl
FROM
wl_car t
<where>
<if test="bizOrgCode != null and bizOrgCode != ''">
AND t.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</where>
</select> </select>
<select id="getCarTypeInfo" resultType="Map"> <select id="getCarTypeInfo" resultType="Map">
...@@ -193,6 +200,11 @@ ...@@ -193,6 +200,11 @@
FROM FROM
wl_car c wl_car c
LEFT JOIN wl_equipment we ON we.id = c.equipment_id LEFT JOIN wl_equipment we ON we.id = c.equipment_id
<where>
<if test="bizOrgCode != null and bizOrgCode != ''">
AND c.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</where>
) d ) d
</select> </select>
......
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