|
@@ -5,9 +5,11 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
5
|
5
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
6
|
6
|
import com.huiju.estateagents.base.ResponseBean;
|
7
|
7
|
import com.huiju.estateagents.entity.TaBuilding;
|
|
8
|
+import com.huiju.estateagents.entity.TaBuildingProjectType;
|
8
|
9
|
import com.huiju.estateagents.entity.TdBuildingType;
|
9
|
10
|
import com.huiju.estateagents.exception.EstaException;
|
10
|
11
|
import com.huiju.estateagents.mapper.TaBuildingMapper;
|
|
12
|
+import com.huiju.estateagents.service.ITaBuildingProjectTypeService;
|
11
|
13
|
import com.huiju.estateagents.service.ITaBuildingService;
|
12
|
14
|
import com.huiju.estateagents.service.ITdBuildingTypeService;
|
13
|
15
|
import io.swagger.annotations.Api;
|
|
@@ -52,6 +54,9 @@ public class TdBuildingTypeController extends BaseController {
|
52
|
54
|
@Autowired
|
53
|
55
|
public TaBuildingMapper taBuildingMapper;
|
54
|
56
|
|
|
57
|
+ @Autowired
|
|
58
|
+ public ITaBuildingProjectTypeService iTaBuildingProjectTypeService;
|
|
59
|
+
|
55
|
60
|
/**
|
56
|
61
|
* 分页查询列表
|
57
|
62
|
* @param pageNum
|
|
@@ -85,6 +90,27 @@ public class TdBuildingTypeController extends BaseController {
|
85
|
90
|
return responseBean;
|
86
|
91
|
}
|
87
|
92
|
|
|
93
|
+ /**
|
|
94
|
+ * 分页查询列表
|
|
95
|
+ * @return
|
|
96
|
+ */
|
|
97
|
+ @RequestMapping(value="/wx/getByBuildingIdSelectBuildingProjectType/{buildingId}",method= RequestMethod.GET)
|
|
98
|
+ public ResponseBean wxGetBuildingProjectTypeByBuildingIdList(@PathVariable(value ="buildingId") String buildingId, HttpServletRequest request){
|
|
99
|
+ ResponseBean responseBean = new ResponseBean();
|
|
100
|
+ try {
|
|
101
|
+ // 项目类型
|
|
102
|
+ QueryWrapper<TaBuildingProjectType> projectTypeQueryWrapper = new QueryWrapper<>();
|
|
103
|
+ projectTypeQueryWrapper.eq("building_id", buildingId);
|
|
104
|
+ projectTypeQueryWrapper.eq("status", 1);
|
|
105
|
+ List<TaBuildingProjectType> result = iTaBuildingProjectTypeService.list(projectTypeQueryWrapper);
|
|
106
|
+ responseBean.addSuccess(result);
|
|
107
|
+ }catch (Exception e){
|
|
108
|
+ logger.error("taBuildingProjectTypeList -=- {}",e.toString());
|
|
109
|
+ responseBean.addError(e.getMessage());
|
|
110
|
+ }
|
|
111
|
+ return responseBean;
|
|
112
|
+ }
|
|
113
|
+
|
88
|
114
|
/**
|
89
|
115
|
* 分页查询列表
|
90
|
116
|
* @param pageNum
|