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 926b9076
authored
Dec 28, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
广告获取接口增加条件查询
1 parent
f38081a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/AdMgrServiceImpl.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformAdMapper.xml
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/AdMgrServiceImpl.java
View file @
926b907
...
...
@@ -26,10 +26,8 @@ public class AdMgrServiceImpl implements AdMgrService {
@Override
public
R
getAdMgrList
(
Page
page
,
PlatformAd
ad
)
{
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
if
(
page
.
getPageNumber
()
>
0
&&
page
.
getPageSize
()
>
0
)
{
PageHelper
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
(),
true
);
}
PageHelper
.
startPage
(
page
.
getPageNumber
(),
page
.
getPageSize
(),
true
);
List
<
PlatformAd
>
adMgrList
=
adMapper
.
getAdMgrList
(
ad
);
return
R
.
ok
().
putPageData
((
com
.
github
.
pagehelper
.
Page
<
PlatformAd
>)
adMgrList
);
}
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformAdMapper.xml
View file @
926b907
...
...
@@ -47,6 +47,9 @@
remark
from t_platform_ad
<where>
<if
test=
"position != null"
>
and position = #{position,jdbcType=INTEGER}
</if>
<if
test=
"status != null"
>
and status = #{status,jdbcType=INTEGER}
</if>
...
...
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