Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 69a23021
authored
Dec 28, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
根据条件区分是否分页
1 parent
d70d3ae0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/AdMgrServiceImpl.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/AdMgrServiceImpl.java
View file @
69a2302
...
@@ -26,8 +26,10 @@ public class AdMgrServiceImpl implements AdMgrService {
...
@@ -26,8 +26,10 @@ public class AdMgrServiceImpl implements AdMgrService {
@Override
@Override
public
R
getAdMgrList
(
Page
page
,
PlatformAd
ad
)
{
public
R
getAdMgrList
(
Page
page
,
PlatformAd
ad
)
{
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
if
(
page
.
getPageNumber
()
>
0
)
{
PageHelper
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
(),
PageHelper
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
(),
true
);
true
);
}
List
<
PlatformAd
>
adMgrList
=
adMapper
.
getAdMgrList
(
ad
);
List
<
PlatformAd
>
adMgrList
=
adMapper
.
getAdMgrList
(
ad
);
return
R
.
ok
().
putPageData
(
adMgrList
);
return
R
.
ok
().
putPageData
(
adMgrList
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment