@JsonIgnore | @JsonIgnore | ||||
private String data; | private String data; | ||||
public String getCustomerId() throws IOException { | |||||
return JsonTools.json2Object(data, this.getClass()).getCustomerId(); | |||||
// return JSONObject.parseObject(data).getString("customerId"); | |||||
public String getCustomerId() { | |||||
try { | |||||
return JsonTools.json2Object(data, this.getClass()).getCustomerId(); | |||||
} catch (IOException e) { | |||||
e.printStackTrace(); | |||||
} | |||||
return null; | |||||
} | } | ||||
} | } |