在返回数据集中增加对象的字段
RobotModel rm = rmMongo.findByRobotCode(robot_code); JSONObject j = (JSONObject) JSON.toJSON(rm); j.put("addField", "test");