傅行帆 3 anos atrás
pai
commit
de72bbee72

+ 2
- 2
src/main/java/com/yunzhi/marketing/service/impl/TaBuildingServiceImpl.java Ver arquivo

@@ -884,10 +884,10 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
884 884
         }
885 885
         switch (orderBy) {
886 886
             case "price-asc":
887
-                orderBy = "tbpt.start_price ASC";
887
+                orderBy = "IFNULL(tbpt.price_type,\"z\") , ifnull(CONVERT(tbpt.start_price, UNSIGNED INTEGER), 9999999999999)";
888 888
                 break;
889 889
             case "price-desc":
890
-                orderBy = "tbpt.end_price DESC";
890
+                orderBy = "tbpt.price_type desc, CONVERT(tbpt.end_price, UNSIGNED INTEGER) DESC";
891 891
                 break;
892 892
             case "openingDate-asc":
893 893
                 orderBy = "tb.opening_date ASC";

+ 3
- 0
src/main/java/com/yunzhi/marketing/service/impl/TaFavorServiceImpl.java Ver arquivo

@@ -130,6 +130,9 @@ public class TaFavorServiceImpl extends ServiceImpl<TaFavorMapper, TaFavor> impl
130 130
         if (typeOf.equals("card")) {
131 131
             taPersonMapper.setFieldIncrement(taPerson.getPersonId(),"like_num", -1);
132 132
         }
133
+        if (typeOf.equals(CommConstant.FAVOR_CONSULTANT)) {
134
+            taPersonMapper.setFieldIncrement(like,"like_num", -1);
135
+        }
133 136
 
134 137
         // 如果是收藏资讯, 则 - 1
135 138
         if (typeOf.equals(CommConstant.FAVOR_NEWS)) {

+ 1
- 0
src/main/resources/mapper/xlk/SearchHouseMapper.xml Ver arquivo

@@ -26,6 +26,7 @@
26 26
         <if test="params.status != null and params.status != ''">
27 27
             and t.status = #{params.status}
28 28
         </if>
29
+        order by CREATED_TIME desc
29 30
     </select>
30 31
     <select id="selectSearchHouseDetail" resultType="com.yunzhi.marketing.xlk.vo.SearchHouseVO">
31 32
         SELECT