瀏覽代碼

修复 bug 4465

魏熙美 6 年之前
父節點
當前提交
6115fa4938
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml

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

@@ -566,12 +566,13 @@
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 570
     <if test="priceFluctuate == 1" >
570
-        order by rh.sort desc, (rh.rental_price+0)  asc
571
+        , (rh.rental_price+0)  asc
571 572
     </if>
572 573
 
573 574
     <if test="priceFluctuate == 2" >
574
-        order by rh.sort desc, (rh.rental_price+0)  desc
575
+        , (rh.rental_price+0)  desc
575 576
     </if>
576 577
   </select>
577 578
 </mapper>