| | |
| | | |
| | | public List<JSONObject> queryPlanList() { |
| | | List<JSONObject> list = assemblyPlanDao.queryPlanList(); |
| | | Map<String, JSONObject> map = new ConcurrentHashMap<>(); // 使用并发安全的Map |
| | | /*Map<String, JSONObject> map = new ConcurrentHashMap<>(); // 使用并发安全的Map |
| | | for (JSONObject item : list) { |
| | | String planId = String.valueOf(item.getObj("planId")); |
| | | JSONObject innerObject = new JSONObject() |
| | |
| | | map.put(planId, outObject); |
| | | } |
| | | } |
| | | return map.values().stream().collect(Collectors.toList()); |
| | | return map.values().stream().collect(Collectors.toList());*/ |
| | | return list; |
| | | } |
| | | } |