傅行帆 vor 3 Jahren
Ursprung
Commit
47e48862e7

+ 3
- 3
src/main/java/com/yunzhi/marketing/xlk/service/impl/SearchHouseServiceImpl.java Datei anzeigen

@@ -109,8 +109,8 @@ public class SearchHouseServiceImpl extends ServiceImpl<SearchHouseMapper, Searc
109 109
     }
110 110
 
111 111
     private Integer[] getUnitPriceRange(Integer minPriceW, Integer maxPriceW, Integer areaResultId) {
112
-        Integer minPrice = minPriceW * 10000;
113
-        Integer maxPrice = maxPriceW * 10000;
112
+        Integer minPrice = minPriceW;
113
+        Integer maxPrice = maxPriceW;
114 114
 
115 115
         // 字典过滤 - 必须与小程序端保持一致
116 116
         switch (areaResultId) {
@@ -151,6 +151,6 @@ public class SearchHouseServiceImpl extends ServiceImpl<SearchHouseMapper, Searc
151 151
                 break;
152 152
         }
153 153
 
154
-        return new Integer[] {minPrice, maxPrice};
154
+        return new Integer[] {minPrice * 10000, maxPrice * 10000};
155 155
     }
156 156
 }

+ 1
- 1
src/main/resources/mapper/TaBuildingMapper.xml Datei anzeigen

@@ -49,7 +49,7 @@
49 49
         SELECT * FROM ta_building
50 50
         <where>
51 51
             1 =1
52
-            and status = 1
52
+            and status != -1
53 53
             <if test="Name != null and Name != ''">
54 54
                 and  (ta_building.name like concat('%',#{Name,jdbcType=VARCHAR},'%') or ta_building.building_name like concat('%',#{Name,jdbcType=VARCHAR},'%'))
55 55
             </if>