浏览代码

修复 bug 4465

魏熙美 6 年前
父节点
当前提交
ed5b2af509
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6
    3
      CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml

+ 6
- 3
CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml 查看文件

@@ -566,13 +566,16 @@
566 566
       and community_id = #{communityId}
567 567
       and rh.house_status = 1
568 568
     </where>
569
-    order by rh.sort desc, update_date desc
569
+    <if test="priceFluctuate == 3">
570
+      order by rh.sort desc, update_date desc
571
+    </if>
572
+
570 573
     <if test="priceFluctuate == 1" >
571
-        , (rh.rental_price+0)  asc
574
+      order by (rh.rental_price+0)  asc, rh.sort desc, update_date desc
572 575
     </if>
573 576
 
574 577
     <if test="priceFluctuate == 2" >
575
-        , (rh.rental_price+0)  desc
578
+      order by (rh.rental_price+0)  desc, rh.sort desc, update_date desc
576 579
     </if>
577 580
   </select>
578 581
 </mapper>