Commit e0d40437 authored by zhangsen's avatar zhangsen

车辆接口sql修改

parent ad452a20
......@@ -2488,11 +2488,14 @@
</select>
<select id="getFireCarInfoByWL" resultType="java.util.Map">
SELECT
select a.* from
(SELECT
`wc`.`id` AS `id`,
`wc`.`name` AS `name`,
max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_WaterCapacity' ) THEN `wcp`.`value` END ) AS `waterCapacity`,
max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_FoamCapacity' ) THEN `wcp`.`value` END ) AS `foamCapacity`,
max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_WaterCapacity' ) THEN `wcp`.`value` END ) AS
`waterCapacity`,
max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_FoamCapacity' ) THEN `wcp`.`value` END ) AS
`foamCapacity`,
max(
CASE
......@@ -2519,7 +2522,7 @@
<if test="bizOrgCode!=null and bizOrgCode!=''">
AND wc.biz_org_code = #{bizOrgCode,jdbcType=VARCHAR}
</if>
</where>
</where>) a
</select>
<select id="getWaterInfo" resultType="java.util.Map">
......
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