mirror of https://github.com/elunez/eladmin
2019/6/3 不分页同理
parent
d7dcd70f4f
commit
e89c95c431
|
@ -54,7 +54,9 @@ public class DictQueryService {
|
||||||
*/
|
*/
|
||||||
@Cacheable(keyGenerator = "keyGenerator")
|
@Cacheable(keyGenerator = "keyGenerator")
|
||||||
public Object queryAll(DictDTO dict){
|
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> {
|
class Spec implements Specification<Dict> {
|
||||||
|
|
Loading…
Reference in New Issue