2019/6/3 不分页同理

pull/88/head
dzy 2019-06-03 15:45:16 +08:00
parent d7dcd70f4f
commit e89c95c431
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ public class DictQueryService {
*/
@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> {