瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

魏超 5 年之前
父節點
當前提交
a4e28f5d25

+ 6
- 1
src/main/java/com/huiju/estateagents/controller/TaHousingResourcesController.java 查看文件

@@ -55,6 +55,9 @@ public class TaHousingResourcesController extends BaseController {
55 55
     @Autowired
56 56
     public ITaBuildingImgService taBuildingImgService;
57 57
 
58
+    @Autowired
59
+    public ITaSalesBatchService taSalesBatchService;
60
+
58 61
     /**
59 62
      * 分页查询列表
60 63
      *
@@ -262,7 +265,7 @@ public class TaHousingResourcesController extends BaseController {
262 265
             QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
263 266
             taRaiseHouseQueryWrapper.in(taRaiseRecordList.size() > 0, "raise_record_id", taRaiseRecordList.stream().map(TaRaiseRecord::getRaiseRecordId).collect(Collectors.toList()));
264 267
             List<TaRaiseHouse> taRaiseHouseList = taRaiseHouseService.list(taRaiseHouseQueryWrapper);
265
-
268
+            TaSalesBatch taSalesBatch = taSalesBatchService.getById(salesBatchId);
266 269
             taHousingResourcesPOList.forEach(e -> {
267 270
                 taPreselectionRecordList.forEach(p -> {
268 271
                     //我的预选
@@ -293,6 +296,8 @@ public class TaHousingResourcesController extends BaseController {
293 296
                     List<TaBuildingImg> apartMentList = taBuildingImgService.getAparemnetList(apartMentIds);
294 297
                     e.setApartmentImgList(apartMentList);
295 298
                 }
299
+
300
+                e.setDisplayHousePrice(taSalesBatch.getDisplayHousePrice());
296 301
             });
297 302
 
298 303
             responseBean.addSuccess(taHousingResourcesPOList);

+ 11
- 1
src/main/java/com/huiju/estateagents/service/impl/TaPreselectionRecordServiceImpl.java 查看文件

@@ -16,6 +16,7 @@ import com.huiju.estateagents.mapper.TaHousingResourcesMapper;
16 16
 import com.huiju.estateagents.mapper.TaPreselectionRecordMapper;
17 17
 import com.huiju.estateagents.po.TaHousingResourcesPO;
18 18
 import com.huiju.estateagents.po.TaPreselectionRecordPO;
19
+import com.huiju.estateagents.service.ITaBuildingApartmentService;
19 20
 import com.huiju.estateagents.service.ITaHousingResourcesService;
20 21
 import com.huiju.estateagents.service.ITaPreselectionRecordService;
21 22
 import org.apache.commons.collections.CollectionUtils;
@@ -66,6 +67,9 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
66 67
     @Autowired
67 68
     private ITaHousingResourcesService taHousingResourcesService;
68 69
 
70
+    @Autowired
71
+    public ITaBuildingApartmentService taBuildingApartmentService;
72
+
69 73
 
70 74
     @Override
71 75
     public IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId,
@@ -107,7 +111,13 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
107 111
             housingQueryWrapper.eq("org_id", record.getOrgId());
108 112
             housingQueryWrapper.eq("house_id", record.getHouseId());
109 113
             housingQueryWrapper.ne("status", -1);
110
-            record.setHousingInfo(taHousingResourcesService.getOne(housingQueryWrapper));
114
+            TaHousingResources housingResources = taHousingResourcesService.getOne(housingQueryWrapper);
115
+            //户型图name
116
+            TaBuildingApartment buildingApartment = taBuildingApartmentService.getById(housingResources.getApartmentId());
117
+            housingResources.setApartmentName(buildingApartment.getApartmentName());
118
+            housingResources.setBuildingArea(buildingApartment.getBuildingArea());
119
+            housingResources.setInsideArea(buildingApartment.getInsideArea());
120
+            record.setHousingInfo(housingResources);
111 121
         });
112 122
 
113 123
         iPage.setRecords(resultList);

+ 1
- 1
src/main/java/com/huiju/estateagents/third/controller/TaThirdPartyMiniappConfigController.java 查看文件

@@ -192,7 +192,7 @@ public class TaThirdPartyMiniappConfigController extends BaseController {
192 192
         // 埋點流程, 不影響主流程
193 193
 
194 194
         try {
195
-            if (!StringUtils.isEmpty(personId)) {
195
+            if (StringUtils.isEmpty(personId)) {
196 196
                 return res;
197 197
             }
198 198