Oracle模式下使用Mybatis-plus记性批量插入报错

【 使用环境 】测试环境
【 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.

1 个赞

你好,你提的这个技术问题牵涉到OceanBase企业版范围内的功能细节;针对此类问题,建议你通过以下方式寻求帮助:

  1. 如你所在的企业客户已签署OceanBase企业版销售合同,请你联系客户经理;

  2. 如你所在的企业客户尚未签署OceanBase企业版销售合同,你可通过OceanBase官网商务咨询页面留下你的联系方式,OceanBase企业版的业务顾问会在一个工作日内与你联系。

另外,我们欢迎你使用社区版,并在论坛/社群中分享你对社区版本的想法、经验和问题,与其他社区成员共同交流。