Commit e51f8bf1 authored by chenhao's avatar chenhao

修改excel导出为孔里表的bug

parent 73b8cfbb
...@@ -133,22 +133,22 @@ ...@@ -133,22 +133,22 @@
c.use_nature_name as useNatureName c.use_nature_name as useNatureName
FROM cb_key_site c FROM cb_key_site c
where c.is_delete = FALSE where c.is_delete = FALSE
<if test="name != null and name != ''"> <if test="name != null and name != '' and name != 'null'">
AND c.`name` like concat('%',#{name}, '%') AND c.`name` like concat('%',#{name}, '%')
</if> </if>
<if test="buildingId != null and buildingId != -1"> <if test="buildingId != null and buildingId != -1">
AND c.`building_id`= #{buildingId} AND c.`building_id`= #{buildingId}
</if> </if>
<if test="fireEnduranceRate != null and fireEnduranceRate != ''"> <if test="fireEnduranceRate != null and fireEnduranceRate != '' and fireEnduranceRate != 'null'">
AND c.`fire_endurance_rate`= #{fireEnduranceRate} AND c.`fire_endurance_rate`= #{fireEnduranceRate}
</if> </if>
<if test="useNature != null and useNature != ''"> <if test="useNature != null and useNature != '' and useNature != 'null'">
AND c.`use_nature`= #{useNature} AND c.`use_nature`= #{useNature}
</if> </if>
<if test="fireFacilitiesInfo != null and fireFacilitiesInfo != ''"> <if test="fireFacilitiesInfo != null and fireFacilitiesInfo != '' and fireFacilitiesInfo != 'null' ">
AND c.`fire_facilities_info`= #{fireFacilitiesInfo} AND c.`fire_facilities_info`= #{fireFacilitiesInfo}
</if> </if>
<if test="bizOrgCode != null and bizOrgCode!=''"> <if test="bizOrgCode != null and bizOrgCode!='' and bizOrgCode!='null' ">
AND c.`biz_org_code` like concat(#{bizOrgCode}, '%') AND c.`biz_org_code` like concat(#{bizOrgCode}, '%')
</if> </if>
</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