Grails 处理org.h2.jdbc.JdbcSQLException

Grails 处理org.h2.jdbc.JdbcSQLException,grails,Grails,我得到一个org.h2.jdbc.JdbcSQLException错误,我与基本集合类型有关联 class User { String email String password String role = "user" String fullName Boolean enabled = false Date dateCreated Date lastUpdated static hasMany = [schools:String] } 我创

我得到一个org.h2.jdbc.JdbcSQLException错误,我与基本集合类型有关联

class User {
   String email
   String password
   String role = "user"
   String fullName
   Boolean enabled = false

   Date dateCreated
   Date lastUpdated

   static hasMany = [schools:String]
}
我创建了一个视图,用户可以在复选框标记中选择学校,然后在控制器操作中,我获取学校值并尝试应用下一个查询,以获取具有部分或全部选定学校的所有用户

def query = User.where {
    schools in params.list("schools")
}
我收到以下错误消息

错误util.jdbceptionReporter-未设置参数1;SQL语句: 选择此id为id2\u 0,此日期为date2\u 0,此电子邮件为email2\u 0,此用户状态为user4\u 2\u 0,此全名为full5\u 2\u 0,此上次更新为last6\u 2\u 0,此密码为password2\u 0,此用户角色为user8\u 2\u 0,此用户id在何处?此日期之前的订单创建asc[90012-164]


感谢您的时间

params.listschools的内容是什么?嗨,Sergio,params.listschools是我从带有学校名称的复选框中获得的值