|
@@ -8,8 +8,10 @@ import com.yunzhi.marketing.base.ResponseBean;
|
8
|
8
|
import com.yunzhi.marketing.common.StringUtils;
|
9
|
9
|
import com.yunzhi.marketing.entity.TaBuilding;
|
10
|
10
|
import com.yunzhi.marketing.entity.TaPerson;
|
|
11
|
+import com.yunzhi.marketing.entity.TdCity;
|
11
|
12
|
import com.yunzhi.marketing.service.ITaBuildingService;
|
12
|
13
|
import com.yunzhi.marketing.service.ITaPersonService;
|
|
14
|
+import com.yunzhi.marketing.service.ITdCityService;
|
13
|
15
|
import com.yunzhi.marketing.xlk.dto.SearchHouseDTO;
|
14
|
16
|
import com.yunzhi.marketing.xlk.dto.SearchHouseReplayDTO;
|
15
|
17
|
import com.yunzhi.marketing.xlk.entity.Curriculum;
|
|
@@ -59,6 +61,9 @@ public class SearchHouseController extends BaseController {
|
59
|
61
|
@Autowired
|
60
|
62
|
private ITaBuildingService taBuildingService;
|
61
|
63
|
|
|
64
|
+ @Autowired
|
|
65
|
+ private ITdCityService tdCityService;
|
|
66
|
+
|
62
|
67
|
/**
|
63
|
68
|
* 分页查询列表
|
64
|
69
|
* @param pageNum
|
|
@@ -181,7 +186,12 @@ public class SearchHouseController extends BaseController {
|
181
|
186
|
public ResponseBean searchHouseGet(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
|
182
|
187
|
ResponseBean responseBean = new ResponseBean();
|
183
|
188
|
try {
|
184
|
|
- responseBean.addSuccess(iSearchHouseService.selectSearchHouseDetail(id));
|
|
189
|
+ SearchHouseVO searchHouseVO = iSearchHouseService.selectSearchHouseDetail(id);
|
|
190
|
+ if (!StringUtils.isEmpty(searchHouseVO.getIntentArea())) {
|
|
191
|
+ TdCity city = tdCityService.getById(searchHouseVO.getIntentArea());
|
|
192
|
+ searchHouseVO.setName(city.getName());
|
|
193
|
+ }
|
|
194
|
+ responseBean.addSuccess(searchHouseVO);
|
185
|
195
|
}catch (Exception e){
|
186
|
196
|
e.printStackTrace();
|
187
|
197
|
logger.error("searchHouseDelete -=- {}",e.toString());
|