Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
d7e43ce1
Commit
d7e43ce1
authored
Jul 30, 2019
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mymaster' into 'master'
广告位修改 See merge request rays/pcloud-book!69
parents
c8011d60
d3480fc8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
AdvertisingSpaceBiz.java
.../com/pcloud/book/advertising/biz/AdvertisingSpaceBiz.java
+1
-1
AdvertisingSpaceBizImpl.java
...ud/book/advertising/biz/impl/AdvertisingSpaceBizImpl.java
+2
-1
AdvertisingSpaceFacade.java
...cloud/book/advertising/facade/AdvertisingSpaceFacade.java
+4
-2
AdvertisingSpaceFacadeImpl.java
...k/advertising/facade/impl/AdvertisingSpaceFacadeImpl.java
+3
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/advertising/biz/AdvertisingSpaceBiz.java
View file @
d7e43ce1
...
...
@@ -170,7 +170,7 @@ public interface AdvertisingSpaceBiz {
* @return
* @throws BizException
*/
PageBean
list
(
String
name
,
PageParam
pageParam
,
Boolean
filterClose
,
Boolean
filterTest
)
throws
BizException
;
PageBean
list
(
String
name
,
PageParam
pageParam
,
Boolean
filterClose
,
Boolean
filterTest
,
String
adPosition
)
throws
BizException
;
/**
* 书刊广告位明细
...
...
pcloud-service-book/src/main/java/com/pcloud/book/advertising/biz/impl/AdvertisingSpaceBizImpl.java
View file @
d7e43ce1
...
...
@@ -1342,11 +1342,12 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
* 获取广告位列表
*/
@Override
public
PageBean
list
(
String
name
,
PageParam
pageParam
,
Boolean
filterClose
,
Boolean
filterTest
)
throws
BizException
{
public
PageBean
list
(
String
name
,
PageParam
pageParam
,
Boolean
filterClose
,
Boolean
filterTest
,
String
adPosition
)
throws
BizException
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"name"
,
StringUtil
.
isEmpty
(
name
)
?
null
:
name
);
paramMap
.
put
(
"filterClose"
,
filterClose
);
paramMap
.
put
(
"filterTest"
,
filterTest
);
paramMap
.
put
(
"adPosition"
,
adPosition
);
PageBean
pageBean
=
advertisingSpaceDao
.
listPage
(
pageParam
,
paramMap
,
"list"
);
if
(
pageBean
==
null
||
ListUtils
.
isEmpty
(
pageBean
.
getRecordList
()))
{
return
new
PageBean
(
0
,
0
,
new
ArrayList
<>());
...
...
pcloud-service-book/src/main/java/com/pcloud/book/advertising/facade/AdvertisingSpaceFacade.java
View file @
d7e43ce1
...
...
@@ -297,13 +297,15 @@ public interface AdvertisingSpaceFacade {
@ApiImplicitParam
(
name
=
"currentPage"
,
value
=
"当前页"
,
dataType
=
"int"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"numPerPage"
,
value
=
"每页条数"
,
dataType
=
"int"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"filterClose"
,
value
=
"过滤已关闭"
,
dataType
=
"int"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"filterTest"
,
value
=
"过滤测试数据"
,
dataType
=
"int"
,
paramType
=
"query"
)
@ApiImplicitParam
(
name
=
"filterTest"
,
value
=
"过滤测试数据"
,
dataType
=
"int"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"adPosition"
,
value
=
"广告位位置"
,
dataType
=
"string"
,
paramType
=
"query"
)
})
@RequestMapping
(
value
=
"list"
,
method
=
RequestMethod
.
GET
)
ResponseDto
<?>
list
(
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"currentPage"
,
required
=
false
)
Integer
currentPage
,
@RequestParam
(
value
=
"numPerPage"
,
required
=
false
)
Integer
numPerPage
,
@RequestParam
(
value
=
"filterClose"
,
required
=
false
)
Boolean
filterClose
,
@RequestParam
(
value
=
"filterTest"
,
required
=
false
)
Boolean
filterTest
)
@RequestParam
(
value
=
"filterTest"
,
required
=
false
)
Boolean
filterTest
,
@RequestParam
(
value
=
"adPosition"
,
required
=
false
)
String
adPosition
)
throws
PermissionException
,
BizException
,
JsonParseException
;
/**
...
...
pcloud-service-book/src/main/java/com/pcloud/book/advertising/facade/impl/AdvertisingSpaceFacadeImpl.java
View file @
d7e43ce1
...
...
@@ -261,7 +261,8 @@ public class AdvertisingSpaceFacadeImpl implements AdvertisingSpaceFacade {
public
ResponseDto
<?>
list
(
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"currentPage"
,
required
=
false
)
Integer
currentPage
,
@RequestParam
(
value
=
"numPerPage"
,
required
=
false
)
Integer
numPerPage
,
@RequestParam
(
value
=
"filterClose"
,
required
=
false
)
Boolean
filterClose
,
@RequestParam
(
value
=
"filterTest"
,
required
=
false
)
Boolean
filterTest
)
@RequestParam
(
value
=
"filterTest"
,
required
=
false
)
Boolean
filterTest
,
@RequestParam
(
value
=
"adPosition"
,
required
=
false
)
String
adPosition
)
throws
PermissionException
,
BizException
,
JsonParseException
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
throw
BookBizException
.
PAGE_PARAM_DELETION
;
...
...
@@ -272,7 +273,7 @@ public class AdvertisingSpaceFacadeImpl implements AdvertisingSpaceFacade {
if
(
null
==
filterTest
)
{
filterTest
=
true
;
}
return
new
ResponseDto
<>(
advertisingSpaceBiz
.
list
(
name
,
new
PageParam
(
currentPage
,
numPerPage
),
filterClose
,
filterTest
));
return
new
ResponseDto
<>(
advertisingSpaceBiz
.
list
(
name
,
new
PageParam
(
currentPage
,
numPerPage
),
filterClose
,
filterTest
,
adPosition
));
}
/**
...
...
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