当前使用版本(必填,否则不予处理)
该问题是如何引起的?(确定最新版也有问题再提!!!)
mapper接口上 如果没有 @SqlParser(filter = true) 注解 且 xml中的SQL有 if()或者ifnull() 函数则会触发mybatis-plus的多租户模式。 会在SQL上拼接 statementId字段。但Idea的控制台不会显示 MySQL数据库
重现步骤(如果有就写完整)
报错信息
Comment From: qmdx
是不是分页导致 ?你关闭 SQL 优化功能
Comment From: KingsOfKungFu
没有分页的情况也是一样
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年11月9日(星期三) 晚上6:48 收件人: @.>; 抄送: " @.>; @.>; 主题: Re: [baomidou/mybatis-plus] 多租户的触发问题 (Issue #4857)
是不是分页导致 ?你关闭 SQL 优化功能
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Comment From: miemieYaho
用最新版给出demo
Comment From: KingsOfKungFu
那到底是什么问题引起的?
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年11月9日(星期三) 晚上9:12 收件人: @.>; 抄送: " @.>; @.>; 主题: Re: [baomidou/mybatis-plus] 多租户的触发问题 (Issue #4857)
用最新版给出demo
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Comment From: qmdx
给出重现 demo 后打开