Commit ebe91cd5 by gaopeng

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

parent 4f1e76b1
...@@ -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());
......
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