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
ba1d6208
Commit
ba1d6208
authored
Oct 10, 2019
by
高鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-1001792new' into 'master'
C1001792 See merge request rays/pcloud-book!191
parents
ec726553
20244c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
5 deletions
+63
-5
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+20
-5
BookGroupDTO.java
...src/main/java/com/pcloud/book/group/dto/BookGroupDTO.java
+43
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
ba1d6208
...
...
@@ -128,6 +128,7 @@ import com.pcloud.settlementcenter.record.dto.GetGroupQrcodeIncomeDTO;
import
com.pcloud.settlementcenter.record.dto.GroupRescourceIncomeParamDTO
;
import
com.pcloud.settlementcenter.record.dto.ProductStaticUnderAppMapDTO
;
import
com.pcloud.settlementcenter.record.service.SettlementService
;
import
com.pcloud.usercenter.party.adviser.dto.AdviserBaseInfoDto
;
import
com.pcloud.videolesson.schedule.service.ScheduleService
;
import
com.pcloud.wechatgroup.group.dto.GroupMemberStatisDTO
;
import
com.pcloud.wechatgroup.group.service.GroupMemberService
;
...
...
@@ -365,11 +366,25 @@ public class BookGroupBizImpl implements BookGroupBiz {
@Override
public
BookGroupDTO
getBookGroupInfo4Wechat
(
Long
bookGroupId
)
throws
BizException
{
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getDTOById
(
bookGroupId
);
if
(
bookGroupDTO
!=
null
&&
bookGroupDTO
.
getBookId
()
!=
null
&&
bookGroupDTO
.
getIsShowBookName
()
!=
null
&&
bookGroupDTO
.
getIsShowBookName
())
{
BookDto
bookDto
=
bookDao
.
getBaseById
(
bookGroupDTO
.
getBookId
());
if
(
bookDto
!=
null
)
{
bookGroupDTO
.
setBookName
(
bookDto
.
getBookName
());
if
(
bookGroupDTO
!=
null
)
{
Long
adviserId
=
bookGroupDTO
.
getCreateUser
();
if
(
adviserId
!=
null
){
Map
<
Long
,
AdviserBaseInfoDto
>
adviserInfoDtoMap
=
adviserConsr
.
getAdviserId2AdviserInfoDtoMap
(
Arrays
.
asList
(
adviserId
));
if
(
adviserInfoDtoMap
!=
null
)
{
AdviserBaseInfoDto
adviserBaseInfoDto
=
adviserInfoDtoMap
.
get
(
adviserId
);
if
(
adviserBaseInfoDto
!=
null
)
{
bookGroupDTO
.
setAgentId
(
adviserBaseInfoDto
.
getAgentId
());
bookGroupDTO
.
setAgentName
(
adviserBaseInfoDto
.
getAgentName
());
}
}
}
if
(
bookGroupDTO
.
getBookId
()
!=
null
)
{
BookDto
bookDto
=
bookDao
.
getBaseById
(
bookGroupDTO
.
getBookId
());
if
(
bookDto
!=
null
)
{
bookGroupDTO
.
setBookName
(
bookDto
.
getBookName
());
bookGroupDTO
.
setBookImg
(
bookDto
.
getCoverImg
());
bookGroupDTO
.
setPublish
(
bookDto
.
getPublish
());
}
}
}
return
bookGroupDTO
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/dto/BookGroupDTO.java
View file @
ba1d6208
...
...
@@ -172,6 +172,21 @@ public class BookGroupDTO extends BaseDto {
*/
private
String
bookGroupCipher
;
/**
* 出版社id(编辑所属)
*/
private
Long
agentId
;
/**
* 出版社名称(编辑所属)
*/
private
String
agentName
;
/**
* 出版社(书所属)
*/
private
String
publish
;
public
String
getUrl
()
{
return
url
;
}
...
...
@@ -438,6 +453,30 @@ public class BookGroupDTO extends BaseDto {
this
.
bookGroupCipher
=
bookGroupCipher
;
}
public
Long
getAgentId
()
{
return
agentId
;
}
public
void
setAgentId
(
Long
agentId
)
{
this
.
agentId
=
agentId
;
}
public
String
getAgentName
()
{
return
agentName
;
}
public
void
setAgentName
(
String
agentName
)
{
this
.
agentName
=
agentName
;
}
public
String
getPublish
()
{
return
publish
;
}
public
void
setPublish
(
String
publish
)
{
this
.
publish
=
publish
;
}
@Override
public
String
toString
()
{
return
"BookGroupDTO{"
+
...
...
@@ -474,6 +513,9 @@ public class BookGroupDTO extends BaseDto {
", customerServiceName='"
+
customerServiceName
+
'\''
+
", isInviteGroup="
+
isInviteGroup
+
", bookGroupCipher='"
+
bookGroupCipher
+
'\''
+
", agentId="
+
agentId
+
", agentName='"
+
agentName
+
'\''
+
", publish='"
+
publish
+
'\''
+
"} "
+
super
.
toString
();
}
}
\ No newline at end of file
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