版本:3.3.0

重现步骤

" + " #{item} " + " " + "" + ) IPage selectRolePermitList(Page<?> page,@Param("ew") RolePermitQuery query); MyBatis-Plus 分页时,foreach标签的collection不支持单个对象中含有集合的操作

其中: @Data public class RolePermitQuery extends Page { List roleIds; }

报错信息

nested exception is org.apache.ibatis.binding.BindingException: Parameter 'roleIds' not found. Available parameters are [ew, arg0, param1, param2] 。 foreach标签的collection不支持单个对象中含有集合的操作

Comment From: miemieYaho

ew.

Comment From: Liesport758

ew.

去掉@param也一样出错的

Comment From: Liesport758

问题怎么直接关了?

ew.

问题怎么直接关了?

Comment From: Liesport758

这样更不行的。我看mybaits-plus有改mybaits源码这块,

| | 李仕波 kihcrjwq@163.com | 签名由网易邮箱大师定制 在2020年3月9日 11:33,CroceItnotifications@github.com 写道:

Ta估计是说要将#{item}这个改为#{ew.item}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.