|
@@ -295,6 +295,14 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
295
|
295
|
building.setBuildingProjectType(buildingProjectTypes);
|
296
|
296
|
building.setPrice(null);
|
297
|
297
|
buildingProjectTypes.forEach(e -> {
|
|
298
|
+ //兼容老小程序展示均价取其一
|
|
299
|
+ if (null == e.getPrice() && e.getPriceType().equals(CommConstant.PRICE_TYPE_AVERAGE)){
|
|
300
|
+ if (null != e.getStartPrice()){
|
|
301
|
+ e.setPrice(e.getStartPrice());
|
|
302
|
+ }else if (null != e.getEndPrice()){
|
|
303
|
+ e.setPrice(e.getEndPrice());
|
|
304
|
+ }
|
|
305
|
+ }
|
298
|
306
|
if (e.getBuildingTypeId().equals(building.getBuildingTypeId())){
|
299
|
307
|
//价格相同显示一个否则显示区间
|
300
|
308
|
Integer startPrice = e.getStartPrice();
|