|
@@ -14,6 +14,8 @@ import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+import java.util.stream.Stream;
|
|
|
|
|
|
/**
|
|
|
* 人工录入Controller
|
|
@@ -49,7 +51,8 @@ public class FengJiInfoController extends BaseController {
|
|
|
@GetMapping("/getStationInfo")
|
|
|
public AjaxResult getStationInfo() {
|
|
|
List<Map<String, String>> list = new ArrayList<>();
|
|
|
- List<StationInfo> stationInfos = stationInfoService.selectStationInfo();
|
|
|
+ List<StationInfo> stationInfoList = stationInfoService.selectStationInfo();
|
|
|
+ List<StationInfo> stationInfos = stationInfoList.stream().filter(w -> w.getStationBasicInfo().getStationType().equals("风")).collect(Collectors.toList());
|
|
|
for (StationInfo stationInfo : stationInfos) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("id", stationInfo.getId());
|