dslContext.batchInsert(studentDO.stream().map(student->{
StudentRecord record = new StudentRecord();
record.from(student);
return record;
}).collect(Collectors.toList()))
.execute();
利用batchInsert方法和XXXRecord去做批处理即可
dslContext.batchInsert(studentDO.stream().map(student->{
StudentRecord record = new StudentRecord();
record.from(student);
return record;
}).collect(Collectors.toList()))
.execute();
利用batchInsert方法和XXXRecord去做批处理即可