【 使用环境 】测试环境
【 OB or 其他组件 】OceanBase-client 版本2.4.18 mybatis-plus
【 使用版本 】
【问题描述】在使用Mybatis-plus的service进行批量插入时,报错Error updating database. Cause: java.sql.SQLFeatureNotSupportedException: not support batch operation for DML_Returning_Into feature
【附件及日志】
Error updating database. Cause: java.sql.SQLFeatureNotSupportedException: not support batch operation for DML_Returning_Into feature.
The error may exist in com/ruoyi/project/activity/mapper/ActiGroupInfoMapper.java (best guess)
The error may involve com.ruoyi.project.activity.mapper.ActiGroupInfoMapper.insert-Inline
The error occurred while setting parameters
SQL: INSERT INTO CRM_APP.ACTI_GROUP_INFO ( REPORT_ID, BRH_NO, BRH_NAME, GROUP_NUMBER, GROUP_NAME, CREATE_BY, UPDATE_BY, UPDATE_TIME, IF_MAIN_BRH ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ? )
Cause: java.sql.SQLFeatureNotSupportedException: not support batch operation for DML_Returning_Into feature.
; not support batch operation for DML_Returning_Into feature.; nested exception is java.sql.SQLFeatureNotSupportedException: not support batch operation for DML_Returning_Into feature.