|
@@ -72,6 +72,12 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
72
|
72
|
@Autowired
|
73
|
73
|
private TaSaveMapper taSaveMapper;
|
74
|
74
|
|
|
75
|
+ @Autowired
|
|
76
|
+ private TaChannelPersonMapper taChannelPersonMapper;
|
|
77
|
+
|
|
78
|
+ @Autowired
|
|
79
|
+ private TaChannelMapper taChannelMapper;
|
|
80
|
+
|
75
|
81
|
@Autowired
|
76
|
82
|
private TaBuildingMapper taBuildingMapper;
|
77
|
83
|
|
|
@@ -437,6 +443,18 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
437
|
443
|
result.put("personType",taPerson.getPersonType());
|
438
|
444
|
result.put("userId", taPerson.getUserId());
|
439
|
445
|
|
|
446
|
+ //经纪人所属渠道
|
|
447
|
+ QueryWrapper<TaChannelPerson> taChannelPersonQueryWrapper = new QueryWrapper<>();
|
|
448
|
+ taChannelPersonQueryWrapper.eq("person_id", taPerson.getPersonId());
|
|
449
|
+ TaChannelPerson taChannelPerson = taChannelPersonMapper.selectOne(taChannelPersonQueryWrapper);
|
|
450
|
+
|
|
451
|
+ if (taChannelPerson != null){
|
|
452
|
+ QueryWrapper<TaChannel> taChannelQueryWrapper = new QueryWrapper<>();
|
|
453
|
+ taChannelQueryWrapper.eq("channel_id", taChannelPerson.getChannelId());
|
|
454
|
+ TaChannel taChannel = taChannelMapper.selectOne(taChannelQueryWrapper);
|
|
455
|
+ result.put("channelName", taChannel.getChannelName());
|
|
456
|
+ }
|
|
457
|
+
|
440
|
458
|
return ResponseBean.success(result);
|
441
|
459
|
}
|
442
|
460
|
|