Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
e89c95c4
Commit
e89c95c4
authored
Jun 03, 2019
by
dzy
Browse files
2019/6/3 不分页同理
parent
d7dcd70f
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/query/DictQueryService.java
View file @
e89c95c4
...
@@ -54,7 +54,9 @@ public class DictQueryService {
...
@@ -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
>
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment