Commit 67c83891 by 刘宇峰

车辆监控-搜索返回线性结构

1 parent d4b6d664
...@@ -32,6 +32,6 @@ public class VehicleTreeSearch { ...@@ -32,6 +32,6 @@ public class VehicleTreeSearch {
/** /**
* 搜索返回树形结构 * 搜索返回树形结构
*/ */
private Boolean searchTree = false; private Boolean returnTrees = false;
} }
...@@ -60,7 +60,7 @@ public class VehicleMonitorSevice { ...@@ -60,7 +60,7 @@ public class VehicleMonitorSevice {
if (CollectionUtils.isEmpty(modelList)) { if (CollectionUtils.isEmpty(modelList)) {
return Lists.newArrayList(); return Lists.newArrayList();
} }
if (search.getSearchTree()) { if (search.getReturnTrees()) {
Map<Long, List<OrgVehicleModel>> modeMap = modelList.stream().collect(Collectors.groupingBy(OrgVehicleModel::getCreatorId)); Map<Long, List<OrgVehicleModel>> modeMap = modelList.stream().collect(Collectors.groupingBy(OrgVehicleModel::getCreatorId));
search.setUserIds(modeMap.keySet()); search.setUserIds(modeMap.keySet());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!