Commit d8bdef22 authored by tangwei's avatar tangwei

修改统计接口

parent aaccb931
...@@ -252,7 +252,17 @@ ...@@ -252,7 +252,17 @@
m.maintenance_company_name, m.maintenance_company_name,
m.owner_unit_id, m.owner_unit_id,
m.owner_unit_name, m.owner_unit_name,
m.fire_fight_sys_id,
<choose>
<when test="fireFightSysId != null and fireFightSysId != '' ">
m.fire_fight_sys_id,
</when>
<otherwise>
'' as fire_fight_sys_id,
</otherwise>
</choose>
m.fire_fight_sys_name, m.fire_fight_sys_name,
m.classify_id, m.classify_id,
m.classify_name, m.classify_name,
...@@ -279,7 +289,8 @@ ...@@ -279,7 +289,8 @@
</if> </if>
</where> </where>
GROUP BY GROUP BY
m.classify_code -- m.classify_code
m.classify_id
</select> </select>
<select id="getFireFacilityPage" resultType="com.yeejoin.equipmanage.common.dto.MaintenanceResourceDataDto"> <select id="getFireFacilityPage" resultType="com.yeejoin.equipmanage.common.dto.MaintenanceResourceDataDto">
SELECT SELECT
...@@ -316,7 +327,7 @@ ...@@ -316,7 +327,7 @@
<if test="ownerUnitId != null"> <if test="ownerUnitId != null">
AND m.owner_unit_id = #{ownerUnitId} AND m.owner_unit_id = #{ownerUnitId}
</if> </if>
<if test="fireFightSysId != null"> <if test="fireFightSysId != null and fireFightSysId != '' ">
AND m.fire_fight_sys_id = #{fireFightSysId} AND m.fire_fight_sys_id = #{fireFightSysId}
</if> </if>
<if test="classifyId != null"> <if test="classifyId != null">
......
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