left join development_info di on di.id = dili.development_id
<where>
1 = 1
<iftest="param.name != null and param.name != ''">
AND CONCAT( REPLACE(di.province_name,'省',''),
REPLACE(di.city_name,'市','') ,
di.region_name,
di.name,
case when dili.area is null then '' else CONCAT(ROUND(dili.area,0),'亩') end ,
dili.type) LIKE concat('%', #{param.name}, '%')
</if>
<iftest="param.provinceName != null and param.provinceName != ''">
and di.province_name =#{param.provinceName}
</if>
<iftest="param.cityName != null and param.cityName != ''">
and di.city_name =#{param.cityName}
</if>
<!--<if test="param.investmentDirection != null and param.investmentDirection != ''">
and (SELECT GROUP_CONCAT(c.industry_direction) from development_investment_direction_info c where c.development_id=dili.development_id) like concat('%',#{param.investmentDirection}, '%')
</if>-->
<iftest="param.regionName != null and param.regionName != ''">
and di.region_name =#{param.regionName}
</if>
<iftest="param.investmentDirection != null and param.investmentDirection != ''">
AND di.id in (SELECT b.development_id FROM development_investment_direction_info b WHERE b.industry_direction = #{param.investmentDirection} and b.development_id=di.id)
</if>
<iftest="param.lowPrice != null and param.lowPrice != ''">
and dili.price >=#{param.lowPrice}
</if>
<iftest="param.highPrice != null and param.highPrice != ''">
and dili.price <= #{param.highPrice}
</if>
<iftest="param.lowArea != null and param.lowArea != ''">
and dili.area >= #{param.lowArea}
</if>
<iftest="param.highArea != null and param.highArea != ''">
and dili.area <= #{param.highArea}
</if>
<iftest="param.landType != null and param.landType != ''">
and dili.type=#{param.landType}
</if>
<iftest="param.developmentId != null and param.developmentId != ''">