You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我像使用mybatis的批量插入、更新方式时,发现不能成功(如下),因为batchSqlSession.getMapper(mapperClass);获取不到,有什么方式能获取到或者其他方式实现类似这种的批量操作吗(不使用sql语句拼接)?随便问下新版本有计划什么时候发布吗?
public <T, U, R> int batchUpdateOrInsert(List data, Class mapperClass, BiFunction<T, U, R> function) {
int count = 1;
SqlSession batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
try {
U mapper = batchSqlSession.getMapper(mapperClass);
我像使用mybatis的批量插入、更新方式时,发现不能成功(如下),因为batchSqlSession.getMapper(mapperClass);获取不到,有什么方式能获取到或者其他方式实现类似这种的批量操作吗(不使用sql语句拼接)?随便问下新版本有计划什么时候发布吗?
public <T, U, R> int batchUpdateOrInsert(List data, Class mapperClass, BiFunction<T, U, R> function) {
int count = 1;
SqlSession batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
try {
U mapper = batchSqlSession.getMapper(mapperClass);
The text was updated successfully, but these errors were encountered: