Commit 1e38b434 authored by lixuan's avatar lixuan

feat: 房源

parent 31b2146a
Pipeline #145648 failed with stages
...@@ -177,22 +177,22 @@ ...@@ -177,22 +177,22 @@
<if test="query.name != null and query.name != ''"> <if test="query.name != null and query.name != ''">
and t4.name like concat('%', #{query.name}, '%') and t4.name like concat('%', #{query.name}, '%')
</if> </if>
<if test="query.yearSellMin != null and query.yearSellMin != ''"> <if test="query.yearSellMin != null">
and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin}
</if> </if>
<if test="query.yearSellMax != null and query.yearSellMax != ''"> <if test="query.yearSellMax != null">
and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax} and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if> </if>
<if test="query.yearTaxMin != null and query.yearTaxMin != ''"> <if test="query.yearTaxMin != null">
and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin} and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin}
</if> </if>
<if test="query.yearTaxMax != null and query.yearTaxMax != ''"> <if test="query.yearTaxMax != null">
and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax} and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax}
</if> </if>
<if test="query.unitPriceMin != null and query.unitPriceMin != ''"> <if test="query.unitPriceMin != null">
and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin} and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin}
</if> </if>
<if test="query.unitPriceMax != null and query.unitPriceMax != ''"> <if test="query.unitPriceMax != null">
and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax} and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax}
</if> </if>
<if test="query.gsFlag != null"> <if test="query.gsFlag != null">
...@@ -275,10 +275,10 @@ ...@@ -275,10 +275,10 @@
</where> </where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''"> <if test="query.dayPriceMin != null">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin} and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
</if> </if>
<if test="query.dayPriceMax != null and query.dayPriceMax != ''"> <if test="query.dayPriceMax != null">
and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax} and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax}
</if> </if>
</trim> </trim>
...@@ -345,22 +345,22 @@ ...@@ -345,22 +345,22 @@
<if test="query.name != null and query.name != ''"> <if test="query.name != null and query.name != ''">
and t4.name like concat('%', #{query.name}, '%') and t4.name like concat('%', #{query.name}, '%')
</if> </if>
<if test="query.yearSellMin != null and query.yearSellMin != ''"> <if test="query.yearSellMin != null">
and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin}
</if> </if>
<if test="query.yearSellMax != null and query.yearSellMax != ''"> <if test="query.yearSellMax != null">
and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax} and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if> </if>
<if test="query.yearTaxMin != null and query.yearTaxMin != ''"> <if test="query.yearTaxMin != null">
and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin} and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin}
</if> </if>
<if test="query.yearTaxMax != null and query.yearTaxMax != ''"> <if test="query.yearTaxMax != null">
and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax} and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax}
</if> </if>
<if test="query.unitPriceMin != null and query.unitPriceMin != ''"> <if test="query.unitPriceMin != null">
and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin} and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin}
</if> </if>
<if test="query.unitPriceMax != null and query.unitPriceMax != ''"> <if test="query.unitPriceMax != null">
and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax} and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax}
</if> </if>
<if test="query.gsFlag != null"> <if test="query.gsFlag != null">
...@@ -443,10 +443,10 @@ ...@@ -443,10 +443,10 @@
</where> </where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''"> <if test="query.dayPriceMin != null">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin} and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
</if> </if>
<if test="query.dayPriceMax != null and query.dayPriceMax != ''"> <if test="query.dayPriceMax != null">
and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax} and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax}
</if> </if>
</trim> </trim>
...@@ -507,22 +507,22 @@ ...@@ -507,22 +507,22 @@
<if test="query.name != null and query.name != ''"> <if test="query.name != null and query.name != ''">
and t4.name like concat('%', #{query.name}, '%') and t4.name like concat('%', #{query.name}, '%')
</if> </if>
<if test="query.yearSellMin != null and query.yearSellMin != ''"> <if test="query.yearSellMin != null">
and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin}
</if> </if>
<if test="query.yearSellMax != null and query.yearSellMax != ''"> <if test="query.yearSellMax != null">
and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax} and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if> </if>
<if test="query.yearTaxMin != null and query.yearTaxMin != ''"> <if test="query.yearTaxMin != null">
and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin} and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin}
</if> </if>
<if test="query.yearTaxMax != null and query.yearTaxMax != ''"> <if test="query.yearTaxMax != null">
and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax} and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax}
</if> </if>
<if test="query.unitPriceMin != null and query.unitPriceMin != ''"> <if test="query.unitPriceMin != null">
and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin} and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin}
</if> </if>
<if test="query.unitPriceMax != null and query.unitPriceMax != ''"> <if test="query.unitPriceMax != null">
and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax} and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax}
</if> </if>
<if test="query.gsFlag != null"> <if test="query.gsFlag != null">
...@@ -608,10 +608,10 @@ ...@@ -608,10 +608,10 @@
</where> </where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''"> <if test="query.dayPriceMin != null">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin} and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
</if> </if>
<if test="query.dayPriceMax != null and query.dayPriceMax != ''"> <if test="query.dayPriceMax != null">
and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax} and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax}
</if> </if>
</trim> </trim>
...@@ -694,22 +694,22 @@ ...@@ -694,22 +694,22 @@
<if test="query.name != null and query.name != ''"> <if test="query.name != null and query.name != ''">
and t4.name like concat('%', #{query.name}, '%') and t4.name like concat('%', #{query.name}, '%')
</if> </if>
<if test="query.yearSellMin != null and query.yearSellMin != ''"> <if test="query.yearSellMin != null">
and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t5.year_sell <![CDATA[ >= ]]> #{query.yearSellMin}
</if> </if>
<if test="query.yearSellMax != null and query.yearSellMax != ''"> <if test="query.yearSellMax != null">
and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax} and t5.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if> </if>
<if test="query.yearTaxMin != null and query.yearTaxMin != ''"> <if test="query.yearTaxMin != null">
and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin} and t5.year_tax <![CDATA[ >= ]]> #{query.yearTaxMin}
</if> </if>
<if test="query.yearTaxMax != null and query.yearTaxMax != ''"> <if test="query.yearTaxMax != null">
and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax} and t5.year_tax <![CDATA[ <= ]]> #{query.yearTaxMax}
</if> </if>
<if test="query.unitPriceMin != null and query.unitPriceMin != ''"> <if test="query.unitPriceMin != null">
and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin} and t1.unit_price <![CDATA[ >= ]]> #{query.unitPriceMin}
</if> </if>
<if test="query.unitPriceMax != null and query.unitPriceMax != ''"> <if test="query.unitPriceMax != null">
and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax} and t1.unit_price <![CDATA[ <= ]]> #{query.unitPriceMax}
</if> </if>
<if test="query.gsFlag != null"> <if test="query.gsFlag != null">
...@@ -763,10 +763,10 @@ ...@@ -763,10 +763,10 @@
</where> </where>
GROUP BY t1.id, t4.id GROUP BY t1.id, t4.id
<trim prefix="having" prefixOverrides="and"> <trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''"> <if test="query.dayPriceMin != null">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin} and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
</if> </if>
<if test="query.dayPriceMax != null and query.dayPriceMax != ''"> <if test="query.dayPriceMax != null">
and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax} and dayPrice <![CDATA[ <= ]]> #{query.dayPriceMax}
</if> </if>
</trim> </trim>
......
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