Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 grails 项目中,一些域类有一个“区域”字段(不是全部)。登录的用户属于一个地区。我想搜索那些 1- 没有区域字段或 2- 他们的区域字段等于当前用户的区域的对象
如何处理?
我用另一种方法解决了它。我在区域上使用了具有特殊唯一值的属性并将其添加到搜索查询中。