|
@@ -88,6 +88,15 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
88
|
88
|
page.setSize(pageSize == null ? 10 : pageSize);
|
89
|
89
|
page.setCurrent(pageNum == null ? 1 : pageNum);
|
90
|
90
|
List<TaBuilding> building = taBuildingMapper.buildingList(page, name, code,startDate,buildingStatus,marketStatus,cityId,isMain, orgId);
|
|
91
|
+
|
|
92
|
+ building.forEach(e -> {
|
|
93
|
+ //查询当前图片
|
|
94
|
+ QueryWrapper<TaBuildingImg> BuildingImgQueryWrapper = new QueryWrapper<>();
|
|
95
|
+ BuildingImgQueryWrapper.eq("building_id", e.getBuildingId());
|
|
96
|
+ BuildingImgQueryWrapper.eq("img_type", "banner");
|
|
97
|
+ List<TaBuildingImg> buildingImg = taBuildingImgMapper.selectList(BuildingImgQueryWrapper);
|
|
98
|
+ e.setBuildingImg(buildingImg);
|
|
99
|
+ });
|
91
|
100
|
page.setRecords(building);
|
92
|
101
|
|
93
|
102
|
return ResponseBean.success(page);
|