Object类型转为Map:
强制转换:
Map<String, Object> resultMap = new HashMap<>();
Map<String, Object> repairMap = new HashMap<>();
repairMap.put("id",entity);
resultMap.put("repair",repairMap);
想要获取repairMap
Map<String, Object> repairBefore =(Map<String,Object>)resultMap.get("repair");