|
@@ -91,10 +91,10 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
91
|
91
|
private TaBuildingDynamicMapper taBuildingDynamicMapper;
|
92
|
92
|
|
93
|
93
|
@Autowired
|
94
|
|
- private TaShareActivityMapper taShareActivityMapper;
|
|
94
|
+ private TaLiveActivityMapper taLiveActivityMapper;
|
95
|
95
|
|
96
|
96
|
@Autowired
|
97
|
|
- private HelpActivityMapper helpActivityMapper;
|
|
97
|
+ private VideoMapper videoMapper;
|
98
|
98
|
|
99
|
99
|
@Autowired
|
100
|
100
|
private TaNewsMapper taNewsMapper;
|
|
@@ -1242,8 +1242,11 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1242
|
1242
|
IPage<TaPersonVisitRecord> taPersonVisitRecordIPage = taPersonVisitRecordMapper.visitRecordByPersonId(page, personId, taPersonBuildingList, buildingId);
|
1243
|
1243
|
List<TaPersonVisitRecord> records = taPersonVisitRecordIPage.getRecords();
|
1244
|
1244
|
records.forEach(e -> {
|
|
1245
|
+ if (StringUtils.isEmpty(e.getTargetId())){
|
|
1246
|
+ return;
|
|
1247
|
+ }
|
1245
|
1248
|
//获取活动标题
|
1246
|
|
- if ("activity".equals(e.getEventType()) && null != e.getTargetId()) {
|
|
1249
|
+ if ("activity".equals(e.getEventType()) || "house".equals(e.getEventType()) || "dymic".equals(e.getEventType()) || "look".equals(e.getEventType())) {
|
1247
|
1250
|
TaBuildingDynamic taBuildingDynamic = taBuildingDynamicMapper.selectById(e.getTargetId());
|
1248
|
1251
|
if (null != taBuildingDynamic) {
|
1249
|
1252
|
e.setActivityName(taBuildingDynamic.getTitle());
|
|
@@ -1251,17 +1254,17 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1251
|
1254
|
|
1252
|
1255
|
}
|
1253
|
1256
|
//获取拼团标题
|
1254
|
|
- if ("group".equals(e.getEventType()) && null != e.getTargetId()) {
|
1255
|
|
- TaShareActivity taShareActivity = taShareActivityMapper.selectById(e.getTargetId());
|
1256
|
|
- if (null != taShareActivity) {
|
1257
|
|
- e.setActivityName(taShareActivity.getActivityName());
|
|
1257
|
+ if ("live".equals(e.getEventType()) && null != e.getTargetId()) {
|
|
1258
|
+ TaLiveActivity taLiveActivity = taLiveActivityMapper.selectById(e.getTargetId());
|
|
1259
|
+ if (null != taLiveActivity) {
|
|
1260
|
+ e.setActivityName(taLiveActivity.getLiveActivityTitle());
|
1258
|
1261
|
}
|
1259
|
1262
|
}
|
1260
|
1263
|
//获取助力标题
|
1261
|
|
- if ("help".equals(e.getEventType()) && null != e.getTargetId()) {
|
1262
|
|
- HelpActivity helpActivity = helpActivityMapper.selectById(e.getTargetId());
|
1263
|
|
- if (null != helpActivity) {
|
1264
|
|
- e.setActivityName(helpActivity.getTitle());
|
|
1264
|
+ if ("video".equals(e.getEventType()) && null != e.getTargetId()) {
|
|
1265
|
+ Video video = videoMapper.selectById(e.getTargetId());
|
|
1266
|
+ if (null != video) {
|
|
1267
|
+ e.setActivityName(video.getName());
|
1265
|
1268
|
}
|
1266
|
1269
|
}
|
1267
|
1270
|
//获取咨询标题
|
|
@@ -1338,8 +1341,11 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1338
|
1341
|
IPage<TaPersonVisitRecord> taPersonVisitRecordIPage = taPersonVisitRecordMapper.visitRecordByPersonId(page, personId, taPersonBuildingList, buildingId);
|
1339
|
1342
|
List<TaPersonVisitRecord> records = taPersonVisitRecordIPage.getRecords();
|
1340
|
1343
|
records.forEach(e -> {
|
|
1344
|
+ if (StringUtils.isEmpty(e.getTargetId())){
|
|
1345
|
+ return;
|
|
1346
|
+ }
|
1341
|
1347
|
//获取活动标题
|
1342
|
|
- if ("activity".equals(e.getEventType()) && null != e.getTargetId()) {
|
|
1348
|
+ if ("activity".equals(e.getEventType()) || "house".equals(e.getEventType()) || "dymic".equals(e.getEventType()) || "look".equals(e.getEventType())) {
|
1343
|
1349
|
TaBuildingDynamic taBuildingDynamic = taBuildingDynamicMapper.selectById(e.getTargetId());
|
1344
|
1350
|
if (null != taBuildingDynamic) {
|
1345
|
1351
|
e.setActivityName(taBuildingDynamic.getTitle());
|
|
@@ -1347,17 +1353,17 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1347
|
1353
|
|
1348
|
1354
|
}
|
1349
|
1355
|
//获取拼团标题
|
1350
|
|
- if ("group".equals(e.getEventType()) && null != e.getTargetId()) {
|
1351
|
|
- TaShareActivity taShareActivity = taShareActivityMapper.selectById(e.getTargetId());
|
1352
|
|
- if (null != taShareActivity) {
|
1353
|
|
- e.setActivityName(taShareActivity.getActivityName());
|
|
1356
|
+ if ("live".equals(e.getEventType()) && null != e.getTargetId()) {
|
|
1357
|
+ TaLiveActivity taLiveActivity = taLiveActivityMapper.selectById(e.getTargetId());
|
|
1358
|
+ if (null != taLiveActivity) {
|
|
1359
|
+ e.setActivityName(taLiveActivity.getLiveActivityTitle());
|
1354
|
1360
|
}
|
1355
|
1361
|
}
|
1356
|
1362
|
//获取助力标题
|
1357
|
|
- if ("help".equals(e.getEventType()) && null != e.getTargetId()) {
|
1358
|
|
- HelpActivity helpActivity = helpActivityMapper.selectById(e.getTargetId());
|
1359
|
|
- if (null != helpActivity) {
|
1360
|
|
- e.setActivityName(helpActivity.getTitle());
|
|
1363
|
+ if ("video".equals(e.getEventType()) && null != e.getTargetId()) {
|
|
1364
|
+ Video video = videoMapper.selectById(e.getTargetId());
|
|
1365
|
+ if (null != video) {
|
|
1366
|
+ e.setActivityName(video.getName());
|
1361
|
1367
|
}
|
1362
|
1368
|
}
|
1363
|
1369
|
//获取咨询标题
|