Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
528b784a
Commit
528b784a
authored
Aug 06, 2019
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
channel查询
parent
6cc9c1b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ChannelConfController.java
...lowboss/api/channel/controller/ChannelConfController.java
+2
-2
ChannelConfService.java
...hloanflowboss/api/channel/service/ChannelConfService.java
+2
-2
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/controller/ChannelConfController.java
View file @
528b784a
...
@@ -29,8 +29,8 @@ public class ChannelConfController {
...
@@ -29,8 +29,8 @@ public class ChannelConfController {
@GetMapping
(
"/info"
)
@GetMapping
(
"/info"
)
public
Page
<
ChannelConfiguration
>
channelInfo
(
@RequestParam
@Valid
Pagination
pagination
,
Integer
channelId
)
{
public
Page
<
ChannelConfiguration
>
channelInfo
(
Integer
pageNumber
,
Integer
pageSize
,
Integer
channelId
)
{
return
channelConfService
.
getChannelInfo
(
pag
ination
,
channelId
);
return
channelConfService
.
getChannelInfo
(
pag
eNumber
,
pageSize
,
channelId
);
}
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/service/ChannelConfService.java
View file @
528b784a
...
@@ -35,7 +35,7 @@ public class ChannelConfService {
...
@@ -35,7 +35,7 @@ public class ChannelConfService {
public
Page
<
ChannelConfiguration
>
getChannelInfo
(
Pagination
pagination
,
Integer
channelId
)
{
public
Page
<
ChannelConfiguration
>
getChannelInfo
(
Integer
pageNumber
,
Integer
pageSize
,
Integer
channelId
)
{
Page
<
ChannelConfiguration
>
page
=
this
.
clfChannelConfigurationRepository
.
findAll
((
root
,
criteriaQuery
,
criteriaBuilder
)
->
{
Page
<
ChannelConfiguration
>
page
=
this
.
clfChannelConfigurationRepository
.
findAll
((
root
,
criteriaQuery
,
criteriaBuilder
)
->
{
...
@@ -51,7 +51,7 @@ public class ChannelConfService {
...
@@ -51,7 +51,7 @@ public class ChannelConfService {
return
criteriaQuery
.
getRestriction
();
return
criteriaQuery
.
getRestriction
();
},
new
PageRequest
(
pag
ination
.
getPageNumber
(),
pagination
.
getPageSize
()
));
},
new
PageRequest
(
pag
eNumber
,
pageSize
));
return
page
;
return
page
;
...
...
Write
Preview
Markdown
is supported
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