傅行帆 3 years ago
parent
commit
3ba304c30f

+ 3
- 1
src/main/java/com/yunzhi/marketing/xlk/controller/SearchHouseController.java View File

189
             SearchHouseVO searchHouseVO = iSearchHouseService.selectSearchHouseDetail(id);
189
             SearchHouseVO searchHouseVO = iSearchHouseService.selectSearchHouseDetail(id);
190
             if (!StringUtils.isEmpty(searchHouseVO.getIntentArea())) {
190
             if (!StringUtils.isEmpty(searchHouseVO.getIntentArea())) {
191
                 TdCity city = tdCityService.getById(searchHouseVO.getIntentArea());
191
                 TdCity city = tdCityService.getById(searchHouseVO.getIntentArea());
192
-                searchHouseVO.setName(city.getName());
192
+                if(null != city){
193
+                    searchHouseVO.setName(city.getName());
194
+                }
193
             }
195
             }
194
             responseBean.addSuccess(searchHouseVO);
196
             responseBean.addSuccess(searchHouseVO);
195
         }catch (Exception e){
197
         }catch (Exception e){