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
ebe91cd5
Commit
ebe91cd5
authored
Sep 24, 2019
by
gaopeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create4Adviser接口限制只有主编辑才能修改书刊信息
parent
4f1e76b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+12
-8
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
ebe91cd5
...
@@ -1450,14 +1450,18 @@ public class BookBizImpl implements BookBiz {
...
@@ -1450,14 +1450,18 @@ public class BookBizImpl implements BookBiz {
// 书籍总数缓存加1
// 书籍总数缓存加1
bookCache
.
incrObject
(
BookConstant
.
BOOK_CACHE
+
"PLATFORM_BOOK_COUNT"
);
bookCache
.
incrObject
(
BookConstant
.
BOOK_CACHE
+
"PLATFORM_BOOK_COUNT"
);
}
else
{
}
else
{
checkIsUpdateCoverImgAndSendTopic
(
bookDto
,
book
.
getCoverImg
());
// 主编辑才能修改书刊信息
checkIsUpdateBookNameAndSendTopic
(
bookDto
,
book
.
getBookName
());
Long
mainAdviserId
=
bookAdviserBiz
.
getMainAdviserId
(
book
.
getBookId
(),
book
.
getChannelId
());
// 修改图书基本信息
if
(
book
.
getCreatedUser
().
equals
(
mainAdviserId
))
{
bookDao
.
updateByAdviser
(
book
);
checkIsUpdateCoverImgAndSendTopic
(
bookDto
,
book
.
getCoverImg
());
// 周任务书刊埋点
checkIsUpdateBookNameAndSendTopic
(
bookDto
,
book
.
getBookName
());
mainLineConsr
.
sendAddBookTask
(
bookDto
.
getBookId
(),
book
.
getCreatedUser
());
// 修改图书基本信息
// 清除redis中数据
bookDao
.
updateByAdviser
(
book
);
bookCache
.
clearRedisByBook
(
book
.
getBookId
(),
book
.
getIsbn
(),
book
.
getSerialNumber
());
// 周任务书刊埋点
mainLineConsr
.
sendAddBookTask
(
bookDto
.
getBookId
(),
book
.
getCreatedUser
());
// 清除redis中数据
bookCache
.
clearRedisByBook
(
book
.
getBookId
(),
book
.
getIsbn
(),
book
.
getSerialNumber
());
}
}
}
bookDto
=
bookDao
.
getByIsbnAndSnum
(
book
.
getIsbn
(),
book
.
getSerialNumber
());
bookDto
=
bookDao
.
getByIsbnAndSnum
(
book
.
getIsbn
(),
book
.
getSerialNumber
());
bookDto
.
setChannelId
(
book
.
getChannelId
());
bookDto
.
setChannelId
(
book
.
getChannelId
());
...
...
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