fuxingfan преди 3 години
родител
ревизия
3bf30060f8
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3
    3
      src/main/java/com/yunzhi/marketing/xlk/service/impl/SearchHouseServiceImpl.java

+ 3
- 3
src/main/java/com/yunzhi/marketing/xlk/service/impl/SearchHouseServiceImpl.java Целия файл

@@ -118,8 +118,8 @@ public class SearchHouseServiceImpl extends ServiceImpl<SearchHouseMapper, Searc
118 118
     }
119 119
 
120 120
     private Integer[] getUnitPriceRange(Integer minPriceW, Integer maxPriceW, Integer areaResultId) {
121
-        Integer minPrice = minPriceW * 10000;
122
-        Integer maxPrice = maxPriceW * 10000;
121
+        long minPrice = minPriceW * 10000;
122
+        long maxPrice = maxPriceW * 10000;
123 123
 
124 124
         // 字典过滤 - 必须与小程序端保持一致
125 125
         switch (areaResultId) {
@@ -160,6 +160,6 @@ public class SearchHouseServiceImpl extends ServiceImpl<SearchHouseMapper, Searc
160 160
                 break;
161 161
         }
162 162
 
163
-        return new Integer[] {minPrice, maxPrice};
163
+        return new Integer[] {Math.toIntExact(minPrice), Math.toIntExact(maxPrice)};
164 164
     }
165 165
 }