Commit d09df665 authored by lixuan's avatar lixuan

feat: 房源

parent e4985f01
Pipeline #145380 failed with stages
......@@ -190,7 +190,29 @@
<if test="query.aiQueries != null and query.aiQueries.size() > 0">
and (
<foreach collection="query.aiQueries" item="ai" separator=" or ">
(t1.two = #{ai.two} and t1.three = #{ai.three} and t1.four = #{ai.four} and t1.type = #{ai.wgType})
(
<if test="ai.two != null and ai.two != ''">
t1.two = #{ai.two}
</if>
<if test="ai.three != null and ai.three != ''">
<if test="ai.two != null and ai.two != ''">
and
</if>
t1.three = #{ai.three}
</if>
<if test="ai.four != null and ai.four != ''">
<if test="(ai.two != null and ai.two != '') or (ai.three != null and ai.three != '')">
and
</if>
t1.four = #{ai.four}
</if>
<if test="ai.wgType != null">
<if test="(ai.two != null and ai.two != '') or (ai.three != null and ai.three != '') or (ai.four != null and ai.four != '')">
and
</if>
t1.type = #{ai.wgType}
</if>
)
</foreach>
)
</if>
......@@ -273,7 +295,29 @@
<if test="query.aiQueries != null and query.aiQueries.size() > 0">
and (
<foreach collection="query.aiQueries" item="ai" separator=" or ">
(t1.two = #{ai.two} and t1.three = #{ai.three} and t1.four = #{ai.four} and t1.type = #{ai.wgType})
(
<if test="ai.two != null and ai.two != ''">
t1.two = #{ai.two}
</if>
<if test="ai.three != null and ai.three != ''">
<if test="ai.two != null and ai.two != ''">
and
</if>
t1.three = #{ai.three}
</if>
<if test="ai.four != null and ai.four != ''">
<if test="(ai.two != null and ai.two != '') or (ai.three != null and ai.three != '')">
and
</if>
t1.four = #{ai.four}
</if>
<if test="ai.wgType != null">
<if test="(ai.two != null and ai.two != '') or (ai.three != null and ai.three != '') or (ai.four != null and ai.four != '')">
and
</if>
t1.type = #{ai.wgType}
</if>
)
</foreach>
)
</if>
......
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