时间:2021-07-01 10:21:17 帮助过:27人阅读
2.json数组
List<DoctorAdviceRecords> doctorAdviceRecords = JSON.parseArray(jsonObject.get("data").toString(), DoctorAdviceRecords.class); for(DoctorAdviceRecords doctorAdviceRecord : doctorAdviceRecords){ int count = session.insert("doctorAdviceRecords.insert", doctorAdviceRecord); }
json直接存入数据库
标签:数组 cto pre oct tostring span seo json对象 rds