Commit 838c141b by 杨林龙

修复运营报表导出BUG

1 parent 8dc96f94
...@@ -197,7 +197,8 @@ public class OpereportService extends AbstractCommonService { ...@@ -197,7 +197,8 @@ public class OpereportService extends AbstractCommonService {
return; return;
} }
List<String> snList = dataList.stream().filter(rdd -> StringUtils.isNotEmpty(rdd.getGpsTime())).map(ReportDeviceExport::getSns).collect(Collectors.toList()); List<String> snList = dataList.stream().filter(rdd -> rdd.getLastGpsTime() != null || rdd.getLastBsTime() != null)
.map(ReportDeviceExport::getSns).collect(Collectors.toList());
//切分成一个list去请求 //切分成一个list去请求
List<List<String>> partList = Lists.partition(snList, 1000); List<List<String>> partList = Lists.partition(snList, 1000);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!