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
d536c7c9
Commit
d536c7c9
authored
Jun 17, 2019
by
gaopeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
广告位修改
parent
7869dfac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
AdvertisingSpaceBiz.java
.../com/pcloud/book/advertising/biz/AdvertisingSpaceBiz.java
+2
-1
AdvertisingSpaceBizImpl.java
...ud/book/advertising/biz/impl/AdvertisingSpaceBizImpl.java
+14
-3
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 @
d536c7c9
...
@@ -263,10 +263,11 @@ public interface AdvertisingSpaceBiz {
...
@@ -263,10 +263,11 @@ public interface AdvertisingSpaceBiz {
* @param adviserId 编辑ID
* @param adviserId 编辑ID
* @param channelId 运营ID
* @param channelId 运营ID
* @param adPositionDetail 广告具体位置
* @param adPositionDetail 广告具体位置
* @param bookGroupId 社群码ID
* @return
* @return
* @throws BizException
* @throws BizException
*/
*/
List
<
AdvertisingSpaceDTO
>
get4Wechat
(
Long
sceneId
,
Long
adviserId
,
Long
channelId
,
String
adPositionDetail
)
throws
BizException
;
List
<
AdvertisingSpaceDTO
>
get4Wechat
(
Long
sceneId
,
Long
adviserId
,
Long
channelId
,
String
adPositionDetail
,
Long
bookGroupId
)
throws
BizException
;
/**
/**
* 获取社群书配置的广告位信息
* 获取社群书配置的广告位信息
...
...
pcloud-service-book/src/main/java/com/pcloud/book/advertising/biz/impl/AdvertisingSpaceBizImpl.java
View file @
d536c7c9
...
@@ -1445,9 +1445,20 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
...
@@ -1445,9 +1445,20 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
*/
*/
@Override
@Override
@ParamLog
(
"客户端获取书刊配置的广告位信息"
)
@ParamLog
(
"客户端获取书刊配置的广告位信息"
)
public
List
<
AdvertisingSpaceDTO
>
get4Wechat
(
Long
sceneId
,
Long
adviserId
,
Long
channelId
,
String
adPositionDetail
)
throws
BizException
{
public
List
<
AdvertisingSpaceDTO
>
get4Wechat
(
Long
sceneId
,
Long
adviserId
,
Long
channelId
,
String
adPositionDetail
,
Long
bookGroupId
)
throws
BizException
{
Long
agentId
=
adviserConsr
.
getAgentIdByAdviser
(
adviserId
);
Long
agentId
;
Long
bookId
=
ResponseHandleUtil
.
parseResponse
(
qrcodeSceneService
.
getBookId4SceneId
(
sceneId
),
Long
.
class
);
Long
bookId
;
if
(
null
!=
bookGroupId
)
{
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getDTOById
(
bookGroupId
);
if
(
null
==
bookGroupDTO
||
null
==
bookGroupDTO
.
getBookId
())
{
return
new
ArrayList
<>();
}
bookId
=
bookGroupDTO
.
getBookId
();
agentId
=
adviserConsr
.
getAgentIdByAdviser
(
bookGroupDTO
.
getCreateUser
());
}
else
{
agentId
=
adviserConsr
.
getAgentIdByAdviser
(
adviserId
);
bookId
=
ResponseHandleUtil
.
parseResponse
(
qrcodeSceneService
.
getBookId4SceneId
(
sceneId
),
Long
.
class
);
}
if
(
null
==
agentId
||
null
==
bookId
)
{
if
(
null
==
agentId
||
null
==
bookId
)
{
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/advertising/facade/impl/AdvertisingSpaceFacadeImpl.java
View file @
d536c7c9
...
@@ -307,10 +307,11 @@ public class AdvertisingSpaceFacadeImpl implements AdvertisingSpaceFacade {
...
@@ -307,10 +307,11 @@ public class AdvertisingSpaceFacadeImpl implements AdvertisingSpaceFacade {
Long
sceneId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_SCENE_ID
);
Long
sceneId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_SCENE_ID
);
Long
adviserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_ADVISER_ID
);
Long
adviserId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_ADVISER_ID
);
Long
channelId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_CHANNEL_ID
);
Long
channelId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
_CHANNEL_ID
);
if
(
null
==
sceneId
||
null
==
adviserId
||
null
==
channelId
)
{
Long
bookGroupId
=
Cookie
.
getId
(
userInfo
,
Cookie
.
BOOK_GROUP_ID
);
if
(
null
==
bookGroupId
&&
(
null
==
sceneId
||
null
==
adviserId
||
null
==
channelId
))
{
return
new
ResponseDto
<>(
new
ArrayList
<>());
return
new
ResponseDto
<>(
new
ArrayList
<>());
}
}
return
new
ResponseDto
<>(
advertisingSpaceBiz
.
get4Wechat
(
sceneId
,
adviserId
,
channelId
,
adPositionDetail
));
return
new
ResponseDto
<>(
advertisingSpaceBiz
.
get4Wechat
(
sceneId
,
adviserId
,
channelId
,
adPositionDetail
,
bookGroupId
));
}
}
/**
/**
...
...
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