Commit ebe91cd5 by gaopeng

create4Adviser接口限制只有主编辑才能修改书刊信息

parent 4f1e76b1
...@@ -1450,6 +1450,9 @@ public class BookBizImpl implements BookBiz { ...@@ -1450,6 +1450,9 @@ 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 {
// 主编辑才能修改书刊信息
Long mainAdviserId = bookAdviserBiz.getMainAdviserId(book.getBookId(), book.getChannelId());
if (book.getCreatedUser().equals(mainAdviserId)) {
checkIsUpdateCoverImgAndSendTopic(bookDto, book.getCoverImg()); checkIsUpdateCoverImgAndSendTopic(bookDto, book.getCoverImg());
checkIsUpdateBookNameAndSendTopic(bookDto, book.getBookName()); checkIsUpdateBookNameAndSendTopic(bookDto, book.getBookName());
// 修改图书基本信息 // 修改图书基本信息
...@@ -1459,6 +1462,7 @@ public class BookBizImpl implements BookBiz { ...@@ -1459,6 +1462,7 @@ public class BookBizImpl implements BookBiz {
// 清除redis中数据 // 清除redis中数据
bookCache.clearRedisByBook(book.getBookId(), book.getIsbn(), book.getSerialNumber()); 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());
/*if (null != bookGroup) { /*if (null != bookGroup) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment