List<TmghDiary> (String name){ List<TmghDiary> list = TmghDiary..find(namename)list}
我是要模糊查询,所以用两个问号占了位。
SELECT * from tmgh_diary WHERE sendto LIKE '%/?/%' OR sendto LIKE '%/?'",name,name
总是报这个错。是不是模糊查询不能这么干?
[ERROR]-[Thread: qtp305623748-17]-[com.jfinal.core.ActionHandler.handle()]: /infor/getSendToDiary
com.jfinal.plugin.activerecord.ActiveRecordException: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).
求波神指导!
项目:JFinal