You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
我有一个需求,页面上可能只需要展示名称字段,但是我的查询条件可能需要有创建人,是否删除等条件,那我理所应该的认为我的VO里只有id和name字段,事实上我也是这么写的,同时我在VO上也加了@SearchBean注解,也指定了tables属性,但是现在我看了beanSearcher.search()方法的源码后,我发现是where条件以及排序字段都是根据VO中的字段进行拼接的,我在map参数中额外指定的创建人,是否删除等条件都没被拼接到SQL中,排序字段同理。上述这个需求其实是最常见的需求了,我是坚定地认为,页面需要什么字段我才返回哪些字段,哪怕我使用bean searcher指定了查询字段,但是依然会返回多余的空数据字段,这不是我希望的,如此对于接口文档是不友好的。
请问是否存在我说的问题。如果存在,可能我认为bean searcher不适合我。
Beta Was this translation helpful? Give feedback.
All reactions