傅行帆 5 年之前
父節點
當前提交
c64c22db1b
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12
    1
      src/main/resources/mapper/TaBuildingMapper.xml

+ 12
- 1
src/main/resources/mapper/TaBuildingMapper.xml 查看文件

139
                                     AND
139
                                     AND
140
                                 </if>
140
                                 </if>
141
                                 <if test='priceArr.length > 1 and priceArr[1] != null and priceArr[1] != ""'>
141
                                 <if test='priceArr.length > 1 and priceArr[1] != null and priceArr[1] != ""'>
142
-                                    <![CDATA[ end_price <= ${priceArr[1]}  ]]>
142
+                                    <![CDATA[ start_price <= ${priceArr[1]}  ]]>
143
                                 </if>
143
                                 </if>
144
+                            )  or
145
+                            (
146
+                            <if test='priceArr[0] != null and priceArr[0] != ""'>
147
+                                <![CDATA[ end_price >= ${priceArr[0]}  ]]>
148
+                            </if>
149
+                            <if test='priceArr.length > 1 and priceArr[0] != null and priceArr[0] != ""'>
150
+                                AND
151
+                            </if>
152
+                            <if test='priceArr.length > 1 and priceArr[1] != null and priceArr[1] != ""'>
153
+                                <![CDATA[ end_price <= ${priceArr[1]}  ]]>
154
+                            </if>
144
                             )
155
                             )
145
                         </foreach>
156
                         </foreach>
146
                     </if>
157
                     </if>