JSONObject opportunityJson = params.getJSONObject("opportunity");
Opportunity opportunity = JSON.parseObject(opportunityJson.toJSONString(),Opportunity.class);
Long userId = user.getId();
Long opportunityId = opportunity.getId();
第二步没有拿到数据
先仔细检查你的json数据,粘到文本文档或者word里
搜索opportunity
看到底有没有这个标签
是不是拼写错误
还是你根本误读了文件