Commit 3b6ee9c0 by 桂前礼

bug: [1029783] 【H5页面】没有显示编辑端设置的图书封面

parent 5577c523
......@@ -1046,9 +1046,15 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
ResourcePage page = resourcePageDao.getById(resourcePageId);
if (StrUtil.isNotBlank(updateResourcePageVO.getBookCover()) && Objects.nonNull(page) && Objects.nonNull(page.getBookGroupId())) {
BookGroupDTO bookGroupDto = bookGroupDao.getDTOById(page.getBookGroupId());
if (Objects.nonNull(bookGroupDto)){
Long bookId;
if (Objects.nonNull(bookGroupDto)) {
bookId = bookGroupDto.getBookId();
} else {
bookId = channelConsr.getBookId4SceneId(page.getSceneId());
}
if (bookId != null) {
Book book = new Book();
book.setBookId(bookGroupDto.getBookId());
book.setBookId(bookId);
book.setLastModifiedUser(updateResourcePageVO.getCreateUser());
book.setCoverImg(updateResourcePageVO.getBookCover());
bookBiz.updateCoverImg(book);
......
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