"...src/main/resources/vm/java/sub-domain.java.vm" did not exist on "a5dce6cccce2e76cb2b68119ced1b33e245ad935"
Commit e89c95c4 authored by dzy's avatar dzy
Browse files

2019/6/3 不分页同理

parent d7dcd70f
......@@ -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> {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment