在第一次用到Restrictions.like方法时,使用了:Restrictions.like("customer_name", customer),发现必须全文匹配才能查找到内容,查了相关资料,应该使用:Restrictions.like("customer_name", customer,MatchMode.ANYWHERE),既只查找部分关键字即可。
Restrictions.like
最新推荐文章于 2024-07-30 10:43:04 发布
1万+

被折叠的 条评论
为什么被折叠?



