当前使用版本(必填,否则不予处理)

mybatis-plus 3.3.0

该问题是如何引起的?(确定最新版也有问题再提!!!)

因项目使用的分布式事务是阿里的TXC,如果上层使用了@TxcTransaction 底下就不能使用基础服务的非脚本请求mybatis,因如Serviceimpl.updateBatchById接口内置了@Transactional导致冲突

重现步骤(如果有就写完整)

仅需上层调用注解其他分布式事务就会出现

报错信息

{ "timestamp": 1678777924051, "status": 500, "error": "Internal Server Error", "exception": "java.lang.IllegalArgumentException", "message": "\n### Error updating database. Cause: java.sql.SQLException: java.sql.SQLException: [15d22e57e7280001-3][10.0.73.152:3306][xrun_member_t]ERR-CODE: [TDDL-4603][ERR_ACCROSS_DB_TRANSACTION] Transaction accross db is not supported in current transaction policy, transaction node is: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0019, but this sql execute on: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0000. \n### The error may exist in com/xtep/rm/business/member/mapper/MemberExtendMapper.java (best guess)\n### The error may involve com.xtep.rm.business.member.mapper.MemberExtendMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO member_extend ( id, member_id, type, extend_id, create_user_name, create_user, create_time, version ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )\n### Cause: java.sql.SQLException: java.sql.SQLException: [15d22e57e7280001-3][10.0.73.152:3306][xrun_member_t]ERR-CODE: [TDDL-4603][ERR_ACCROSS_DB_TRANSACTION] Transaction accross db is not supported in current transaction policy, transaction node is: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0019, but this sql execute on: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0000. \n; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; java.sql.SQLException: [15d22e57e7280001-3][10.0.73.152:3306][xrun_member_t]ERR-CODE: [TDDL-4603][ERR_ACCROSS_DB_TRANSACTION] Transaction accross db is not supported in current transaction policy, transaction node is: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0019, but this sql execute on: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0000. ; nested exception is java.sql.SQLException: java.sql.SQLException: [15d22e57e7280001-3][10.0.73.152:3306][xrun_member_t]ERR-CODE: [TDDL-4603][ERR_ACCROSS_DB_TRANSACTION] Transaction accross db is not supported in current transaction policy, transaction node is: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0019, but this sql execute on: XRUN_MEMBER_T_1576630963817AJPX_RLZQ_0000. ", "path": "/api/v1/member/apple/auth" }

Comment From: huayanYu

com.baomidou.mybatisplus.extension.toolkit.Db