|
@@ -10,6 +10,7 @@ import com.huiju.estateagents.common.CommConstant;
|
10
|
10
|
import com.huiju.estateagents.common.JWTUtils;
|
11
|
11
|
import com.huiju.estateagents.common.StringUtils;
|
12
|
12
|
import com.huiju.estateagents.entity.*;
|
|
13
|
+import com.huiju.estateagents.mapper.TaBuildingProjectTypeMapper;
|
13
|
14
|
import com.huiju.estateagents.service.*;
|
14
|
15
|
import org.apache.commons.collections.map.HashedMap;
|
15
|
16
|
import org.slf4j.Logger;
|
|
@@ -55,6 +56,8 @@ public class TaPersonVisitRecordController extends BaseController {
|
55
|
56
|
private ITaRecommendCustomerService taRecommendCustomerService;
|
56
|
57
|
@Autowired
|
57
|
58
|
public ITaPersonFromRecordService iTaPersonFromRecordService;
|
|
59
|
+ @Autowired
|
|
60
|
+ private TaBuildingProjectTypeMapper taBuildingProjectTypeMapper;
|
58
|
61
|
|
59
|
62
|
|
60
|
63
|
/**
|
|
@@ -372,6 +375,32 @@ public class TaPersonVisitRecordController extends BaseController {
|
372
|
375
|
e.setNewsNum(shareNum);
|
373
|
376
|
break;
|
374
|
377
|
case CommConstant.FAVOR_PROJECT:
|
|
378
|
+ //获取项目类型里的价格
|
|
379
|
+ QueryWrapper<TaBuildingProjectType> projectTypeQueryWrapper = new QueryWrapper<>();
|
|
380
|
+ projectTypeQueryWrapper.eq("building_id",e.getTargetId());
|
|
381
|
+ projectTypeQueryWrapper.eq("building_type_id",e.getBuildingTypeId());
|
|
382
|
+ TaBuildingProjectType taBuildingProjectType = taBuildingProjectTypeMapper.selectOne(projectTypeQueryWrapper);
|
|
383
|
+ //价格相同显示一个否则显示区间
|
|
384
|
+ if (null != taBuildingProjectType){
|
|
385
|
+ Integer startPrice = taBuildingProjectType.getStartPrice();
|
|
386
|
+ Integer endPrice = taBuildingProjectType.getEndPrice();
|
|
387
|
+ if (null != startPrice && null == endPrice){
|
|
388
|
+ e.setPrice(String.valueOf(startPrice));
|
|
389
|
+ }else if (null == startPrice && null != endPrice){
|
|
390
|
+ e.setPrice(String.valueOf(endPrice));
|
|
391
|
+ }else if(null != startPrice && null != endPrice){
|
|
392
|
+ if (startPrice.equals(endPrice)){
|
|
393
|
+ e.setPrice(String.valueOf(startPrice));
|
|
394
|
+ }else{
|
|
395
|
+ e.setPrice(startPrice + "--" + endPrice);
|
|
396
|
+ }
|
|
397
|
+ }else{
|
|
398
|
+ e.setPrice(null);
|
|
399
|
+ }
|
|
400
|
+ e.setPriceType(taBuildingProjectType.getPriceType());
|
|
401
|
+ } else {
|
|
402
|
+ e.setPrice(null);
|
|
403
|
+ }
|
375
|
404
|
e.setBuildingNum(shareNum);
|
376
|
405
|
break;
|
377
|
406
|
case CommConstant.EVENT_H5:
|