Skip to content

Commit

Permalink
2019/6/3 不分页同理
Browse files Browse the repository at this point in the history
  • Loading branch information
d15801543974 committed Jun 3, 2019
1 parent d7dcd70 commit e89c95c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public Object queryAll(DictDTO dict, Pageable pageable){
*/
@Cacheable(keyGenerator = "keyGenerator")
public Object queryAll(DictDTO dict){
return dictMapper.toDto(dictRepository.findAll(new Spec(dict)));
//return dictMapper.toDto(dictRepository.findAll(new Spec(dict)));
/** Dong ZhaoYang 2019/6/3 不分页 同理 */
return dictMapper.toDto(dictRepository.findAll((root, query, cb) -> BeanHelp.getPredicate(root, dict, cb)));
}

class Spec implements Specification<Dict> {
Expand Down

0 comments on commit e89c95c

Please sign in to comment.