|
@@ -133,12 +133,15 @@ public class TaPersonVisitRecordServiceImpl extends ServiceImpl<TaPersonVisitRec
|
133
|
133
|
}
|
134
|
134
|
|
135
|
135
|
QueryWrapper<TaPerson> queryWrapper = new QueryWrapper<>();
|
136
|
|
- queryWrapper.eq("user_id", e.getSharePersonId()).or().eq("person_id", e.getSharePersonId());
|
|
136
|
+ queryWrapper.eq("person_id", e.getSharePersonId());
|
137
|
137
|
TaPerson userShareInfo = taPersonMapper.selectOne(queryWrapper);
|
138
|
|
- if (userShareInfo != null) {
|
139
|
|
- e.setShareName(userShareInfo.getNickname());
|
140
|
|
- e.setShareTel(userShareInfo.getPhone());
|
141
|
|
- }
|
|
138
|
+
|
|
139
|
+ QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper<>();
|
|
140
|
+ taPersonQueryWrapper.eq("user_id", e.getSharePersonId());
|
|
141
|
+ TaPerson taPersonUser = taPersonMapper.selectOne(taPersonQueryWrapper);
|
|
142
|
+
|
|
143
|
+ e.setShareName(userShareInfo == null ? taPersonUser.getNickname() : userShareInfo.getNickname());
|
|
144
|
+ e.setShareTel(userShareInfo == null ? taPersonUser.getPhone() :userShareInfo.getPhone());
|
142
|
145
|
|
143
|
146
|
if (CommConstant.H5_SHARE.equals(e.getEventType())) {
|
144
|
147
|
e.setActivityName(e.getDrainageName());
|