baomidou / mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development
https://baomidou.com
Apache License 2.0
16.4k stars 4.31k forks source link

[Bug]: 3.5.7版本生成in条件不带上括号导致报错 #6345

Closed hhyy2009 closed 3 months ago

hhyy2009 commented 3 months ago

确认

当前程序版本

3.5.7

问题描述

3.5.5调用selectList(new LambdaQueryWrapper().in(field, values)),可以正确的生成in语句(in条件带上括号) 3.5.7调用同一个方法,生成的in语句没有括号,导致报错

详细堆栈日志

3.5.5生成的in语句:select * from users where id in (1,2,3,4)
3.5.7生成的in语句:select * from users where id in 1,2,3,4