|
@@ -60,6 +60,11 @@ public class TaChannelServiceImpl extends ServiceImpl<TaChannelMapper, TaChannel
|
60
|
60
|
orderType = "desc";
|
61
|
61
|
}
|
62
|
62
|
IPage<TsActivityDaily> data = taChannelMapper.getChannelIntroductionList(pg, orgId,startDate,endDate,channelType,buildingId, channelId, sortField, orderType,taPersonBuildings);
|
|
63
|
+ List<TsActivityDaily> records = data.getRecords();
|
|
64
|
+ records.forEach(e -> {
|
|
65
|
+ List<ChannelVisitPersonNum> channelPersonNumListExport = taChannelMapper.getChannelPersonNumListExport(orgId, channelId, e.getTargetId(), e.getTargetType(), buildingId, startDate, endDate);
|
|
66
|
+ e.setVisitPersons(channelPersonNumListExport.size());
|
|
67
|
+ });
|
63
|
68
|
return ResponseBean.success(data);
|
64
|
69
|
}
|
65
|
70
|
|
|
@@ -135,6 +140,9 @@ public class TaChannelServiceImpl extends ServiceImpl<TaChannelMapper, TaChannel
|
135
|
140
|
public List<TsChannelDaily> getChannelIntroductionListExport(Integer orgId, LocalDate startDate, LocalDate endDate, String channelType, String buildingId, Integer channelId, List<TaPersonBuilding> taPersonBuildings) {
|
136
|
141
|
List<TsChannelDaily> channelIntroductionListExport = taChannelMapper.getChannelIntroductionListExport(orgId, startDate, endDate, channelType, buildingId, channelId,taPersonBuildings);
|
137
|
142
|
channelIntroductionListExport.forEach(e -> {
|
|
143
|
+ List<ChannelVisitPersonNum> channelPersonNumListExport = taChannelMapper.getChannelPersonNumListExport(orgId, channelId, e.getTargetId(), e.getTargetType(), buildingId, startDate, endDate);
|
|
144
|
+ e.setVisitPersons(channelPersonNumListExport.size());
|
|
145
|
+
|
138
|
146
|
String message = "";
|
139
|
147
|
switch (e.getTargetType()){
|
140
|
148
|
case "building":
|