67,541
社区成员
发帖
与我相关
我的任务
分享
你这个参数为什么没有值?
参数没有值怎么往里放 啊?
你可以将SQL语句设置为"from Userinfo u where u.username in(:username)"
只要把SQL语句拼成"from Userinfo u where u.username in("1","2","3")"这样、for循环一下就ok了
query.setParameter(××, username);把××弄成"1","2","3"就行了