Map<String, Object> parmMap = new HashMap<String, Object>(); //定义一个用于存储强转后的Map List<Map<String, Object>> findActivityList = groupConfigDao.findActivityList(); //查询List<Map>里的数据 //List<Map<String, Object>> (findActivityList)转Map<String, Object>(parmMap) findActivityList.forEach(listMap -> { parmMap.put((String)listMap.get("phone_num"), listMap.get("id")); });