Commit a6698534 authored by lixuan's avatar lixuan

Merge branch 'dev-lx' into dev

parents 0bd26728 6feb5e7c
Pipeline #144872 failed with stages
in 7 minutes and 18 seconds
......@@ -135,48 +135,46 @@
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN business_entity_info t3 ON t1.id = t3.house_resource_id
LEFT JOIN business_entity_sell t4 ON t4.business_entity_info_id = t3.id
<where>
and t1.show_flag = 1
<if test="query.wgType != null">
and t1.type = #{query.wgType}
</if>
<if test="query.two != null and query.two != ''">
and t1.two = #{query.two}
</if>
<if test="query.three != null and query.three != ''">
and t1.three = #{query.three}
</if>
<if test="query.four != null and query.four != ''">
and t1.four = #{query.four}
</if>
<if test="query.houseResourceAttribute != null">
and t1.house_resource_attribute = #{query.houseResourceAttribute}
</if>
<if test="query.hireStatus != null">
and t1.hire_status = #{query.hireStatus}
</if>
<if test="query.houseNumber != null and query.houseNumber != ''">
and t1.house_number like concat('%', #{query.houseNumber}, '%')
</if>
<if test="query.houseAreaMin != null and query.houseAreaMin != '' and query.houseAreaMax != null and query.houseAreaMax != ''">
and t1.house_area <![CDATA[ >= ]]> #{query.houseAreaMin} and t1.house_area <![CDATA[ <= ]]> #{query.houseAreaMax}
</if>
<if test="query.houseResourceType != null">
and t1.house_resource_type = #{query.houseResourceType}
</if>
<if test="query.name != null and query.name != ''">
and t3.name like concat('%', #{query.name}, '%')
</if>
<if test="query.yearSellMin != null and query.yearSellMin != '' and query.yearSellMax != null and query.yearSellMax != ''">
and t4.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t4.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if>
<if test="query.wgCodes != null and query.wgCodes.size() > 0">
and t1.two in
<foreach item="item" index="index" collection="query.wgCodes" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</where>
where t1.rental_unit = 5 and t1.show_flag = 1
<if test="query.wgType != null">
and t1.type = #{query.wgType}
</if>
<if test="query.two != null and query.two != ''">
and t1.two = #{query.two}
</if>
<if test="query.three != null and query.three != ''">
and t1.three = #{query.three}
</if>
<if test="query.four != null and query.four != ''">
and t1.four = #{query.four}
</if>
<if test="query.houseResourceAttribute != null">
and t1.house_resource_attribute = #{query.houseResourceAttribute}
</if>
<if test="query.hireStatus != null">
and t1.hire_status = #{query.hireStatus}
</if>
<if test="query.houseNumber != null and query.houseNumber != ''">
and t1.house_number like concat('%', #{query.houseNumber}, '%')
</if>
<if test="query.houseAreaMin != null and query.houseAreaMin != '' and query.houseAreaMax != null and query.houseAreaMax != ''">
and t1.house_area <![CDATA[ >= ]]> #{query.houseAreaMin} and t1.house_area <![CDATA[ <= ]]> #{query.houseAreaMax}
</if>
<if test="query.houseResourceType != null">
and t1.house_resource_type = #{query.houseResourceType}
</if>
<if test="query.name != null and query.name != ''">
and t3.name like concat('%', #{query.name}, '%')
</if>
<if test="query.yearSellMin != null and query.yearSellMin != '' and query.yearSellMax != null and query.yearSellMax != ''">
and t4.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t4.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if>
<if test="query.wgCodes != null and query.wgCodes.size() > 0">
and t1.two in
<foreach item="item" index="index" collection="query.wgCodes" open="(" separator="," close=")">
#{item}
</foreach>
</if>
GROUP BY t1.id
<if test="query.dayPriceMin != null and query.dayPriceMin != '' and query.dayPriceMax != null and query.dayPriceMax != ''">
having dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin} and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax}
......
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