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
a818edca
Commit
a818edca
authored
Jan 26, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug/1027830' into 'master'
bug: [1027830] 展示书刊标签 See merge request rays/pcloud-book!1170
parents
511540d4
fe965f5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+5
-3
BookFacade.java
...src/main/java/com/pcloud/book/book/facade/BookFacade.java
+1
-1
BookSet.java
...-book/src/main/java/com/pcloud/book/book/set/BookSet.java
+3
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
a818edca
...
...
@@ -637,9 +637,10 @@ public class BookBizImpl implements BookBiz {
bookDto
.
setTempletId
(
bookAdviserDto
.
getTempletId
());
bookSet
.
setFirstTemplateName
(
bookDto
);
adviserId
=
bookAdviserDto
.
getAdviserId
();
if
(
bookAdviserDto
.
getGraLabelId
()!=
null
){
bookDto
.
setGraLabelId
(
bookAdviserDto
.
getGraLabelId
());
}
bookDto
.
setGraLabelId
(
bookAdviserDto
.
getGraLabelId
());
bookDto
.
setSubLabelId
(
bookAdviserDto
.
getSubLabelId
());
bookDto
.
setVerLabelId
(
bookAdviserDto
.
getVerLabelId
());
bookDto
.
setVolLabelId
(
bookAdviserDto
.
getVolLabelId
());
}
if
(
Objects
.
nonNull
(
bookDto
)){
bookDto
.
setIsLibraryBook
(
checkIsLibraryBook
(
adviserId
,
bookId
)
?
1
:
0
);
...
...
@@ -1234,6 +1235,7 @@ public class BookBizImpl implements BookBiz {
}
// 获取书籍基本信息
BookDto
bookDto
=
this
.
getBaseById
(
bookId
);
bookSet
.
setLabelNames
(
Arrays
.
asList
(
bookDto
));
return
bookDto
;
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/BookFacade.java
View file @
a818edca
...
...
@@ -229,7 +229,7 @@ public interface BookFacade {
* 获取书籍的基本信息(微信客户端)
*/
@ApiOperation
(
value
=
"获取书籍的基本信息(微信客户端)"
,
httpMethod
=
"GET"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"token"
,
value
=
"token"
,
dataType
=
"string"
,
paramType
=
"header"
),
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"bookId"
,
value
=
"书籍标识"
,
dataType
=
"long"
,
paramType
=
"query"
)})
@RequestMapping
(
value
=
"getBaseInfoById4Wechat"
,
method
=
RequestMethod
.
GET
)
ResponseDto
<
BookDto
>
getBaseInfoById4Wechat
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/set/BookSet.java
View file @
a818edca
...
...
@@ -1968,6 +1968,9 @@ public class BookSet {
labelIds
.
add
(
bookDto
.
getVolLabelId
());
}
});
if
(
ListUtils
.
isEmpty
(
labelIds
))
{
return
;
}
Map
<
Long
,
BookLabel
>
bookLabelMap
=
bookLabelDao
.
getMapByIds
(
labelIds
);
recordList
.
forEach
(
bookDto
->
{
if
(
bookLabelMap
.
get
(
bookDto
.
getAreaLabelId
())
!=
null
)
{
...
...
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