String collectionName = "space_json";//表名标签:spaceCode,collectionName,mongo,List,查询,query From: https://www.cnblogs.com/y155/p/16661264.html
List<Map<String, Object>> maplist = new ArrayList();
Query query = createMongoQuery(spaceCode,roomId);//查询条件
List<Document> documents = mongoTemplate.find(query, Document.class, collectionName);