org.jdbi.v3.core.statement.unabletocreatestatementexception:查询声明none时提供了多余的命名参数

zwghvu4y  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(176)
@SqlQuery("Select id from user where type in (<CAST(userType as user_type[])>)")
List<Long> getUserIdsByListOfTypes(@BindList("userType") List<User.UserType> userTypes);

我想从用户类型列表中获取id列表。
这里user.usertype是一个枚举。在方法(getuseridsbylistoftypes)中,我传递了enum的list类型的参数(usertypes)。
我不明白问题出在哪里。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题