|
@@ -143,7 +143,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
143
|
143
|
Integer startPrice = taBuildingProjectType.getStartPrice();
|
144
|
144
|
Integer endPrice = taBuildingProjectType.getEndPrice();
|
145
|
145
|
if (null != startPrice || null != endPrice){
|
146
|
|
- if (startPrice == endPrice){
|
|
146
|
+ if (startPrice.equals(endPrice)){
|
147
|
147
|
taBuilding.setPrice(String.valueOf(startPrice));
|
148
|
148
|
}else {
|
149
|
149
|
taBuilding.setPrice(startPrice + "--" + endPrice);
|
|
@@ -755,7 +755,26 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
755
|
755
|
}
|
756
|
756
|
}
|
757
|
757
|
|
758
|
|
-
|
|
758
|
+ //获取项目类型里的价格
|
|
759
|
+ QueryWrapper<TaBuildingProjectType> projectTypeQueryWrapper = new QueryWrapper<>();
|
|
760
|
+ projectTypeQueryWrapper.eq("building_id",build.getBuildingId());
|
|
761
|
+ projectTypeQueryWrapper.eq("building_type_id",build.getBuildingTypeId());
|
|
762
|
+ TaBuildingProjectType taBuildingProjectType = taBuildingProjectTypeMapper.selectOne(projectTypeQueryWrapper);
|
|
763
|
+ //价格相同显示一个否则显示区间
|
|
764
|
+ if (null != taBuildingProjectType){
|
|
765
|
+ Integer startPrice = taBuildingProjectType.getStartPrice();
|
|
766
|
+ Integer endPrice = taBuildingProjectType.getEndPrice();
|
|
767
|
+ if (null != startPrice || null != endPrice){
|
|
768
|
+ if (startPrice.equals(endPrice)){
|
|
769
|
+ build.setPrice(String.valueOf(startPrice));
|
|
770
|
+ }else {
|
|
771
|
+ build.setPrice(startPrice + "--" + endPrice);
|
|
772
|
+ }
|
|
773
|
+ }
|
|
774
|
+ build.setPriceType(taBuildingProjectType.getPriceType());
|
|
775
|
+ }else {
|
|
776
|
+ build.setPrice(null);
|
|
777
|
+ }
|
759
|
778
|
}
|
760
|
779
|
}
|
761
|
780
|
|