Commit c6d5d34c by 田超

Merge branch 'fixbug/1029783' into 'master'

bug: [1029783] 编辑端设置图书封面

See merge request rays/pcloud-book!1336
parents 19944f6f d95702b7
......@@ -1044,10 +1044,10 @@ 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 (StrUtil.isNotBlank(updateResourcePageVO.getBookCover()) && Objects.nonNull(page)) {
Long bookId;
if (Objects.nonNull(bookGroupDto)) {
if (Objects.nonNull(page.getBookGroupId())) {
BookGroupDTO bookGroupDto = bookGroupDao.getDTOById(page.getBookGroupId());
bookId = bookGroupDto.getBookId();
} else {
bookId = channelConsr.getBookId4SceneId(page.getSceneId());
......
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