|
@@ -81,6 +81,9 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
81
|
81
|
@Autowired
|
82
|
82
|
private TaShareActivityMapper taShareActivityMapper;
|
83
|
83
|
|
|
84
|
+ @Autowired
|
|
85
|
+ private TaLiveActivityMapper taLiveActivityMapper;
|
|
86
|
+
|
84
|
87
|
@Autowired
|
85
|
88
|
private TaExtendContentMapper taExtendContentMapper;
|
86
|
89
|
|
|
@@ -108,9 +111,6 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
108
|
111
|
@Autowired
|
109
|
112
|
private ITaSalesBatchService iTaSalesBatchService;
|
110
|
113
|
|
111
|
|
- @Autowired
|
112
|
|
- private TaLiveActivityMapper taLiveActivityMapper;
|
113
|
|
-
|
114
|
114
|
@Override
|
115
|
115
|
public ResponseBean buildingList(Integer pageNum, Integer pageSize, String name, String code, LocalDateTime startDate, String buildingStatus, String marketStatus, Integer cityId, Integer isMain, Integer orgId, List<TaPersonBuilding> taPersonBuildingList) {
|
116
|
116
|
Page<TaBuilding> page = new Page<>();
|
|
@@ -437,6 +437,13 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
437
|
437
|
taShareActivityQueryWrapper.eq("building_id", building.getBuildingId());
|
438
|
438
|
taShareActivityMapper.update(taShareActivity, taShareActivityQueryWrapper);
|
439
|
439
|
|
|
440
|
+ //更新直播城市
|
|
441
|
+ TaLiveActivity taLiveActivity = new TaLiveActivity();
|
|
442
|
+ taLiveActivity.setCityId(building.getCityId());
|
|
443
|
+ QueryWrapper<TaLiveActivity> taLiveActivityQueryWrapper = new QueryWrapper<>();
|
|
444
|
+ taLiveActivityQueryWrapper.eq("building_id", building.getBuildingId());
|
|
445
|
+ taLiveActivityMapper.update(taLiveActivity, taLiveActivityQueryWrapper);
|
|
446
|
+
|
440
|
447
|
//更新首页轮播、开屏广告、宣传位
|
441
|
448
|
TaExtendContent taExtendContent = new TaExtendContent();
|
442
|
449
|
taExtendContent.setCityId(building.getCityId());
|
|
@@ -618,6 +625,13 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
618
|
625
|
building.setStatus(-1);
|
619
|
626
|
taBuildingMapper.update(building, buildingIdQueryWrapper);
|
620
|
627
|
|
|
628
|
+ TaLiveActivity taLiveActivity = new TaLiveActivity();
|
|
629
|
+ QueryWrapper<TaLiveActivity> queryWrapper = new QueryWrapper<>();
|
|
630
|
+ queryWrapper.eq("building_id", id);
|
|
631
|
+ taLiveActivity.setStatus(0);
|
|
632
|
+ taLiveActivity.setCityId(null);
|
|
633
|
+ taLiveActivity.setBuildingId(null);
|
|
634
|
+ taLiveActivityMapper.update(taLiveActivity, queryWrapper);
|
621
|
635
|
return ResponseBean.success("");
|
622
|
636
|
}
|
623
|
637
|
|