Commit 13e669ac by 桂前礼

bug: [none] 默认图书图书封面

parent 921997f1
...@@ -23,6 +23,7 @@ import com.pcloud.book.applet.entity.AppletThirdResources; ...@@ -23,6 +23,7 @@ import com.pcloud.book.applet.entity.AppletThirdResources;
import com.pcloud.book.base.exception.BookBizException; import com.pcloud.book.base.exception.BookBizException;
import com.pcloud.book.book.biz.BookAdviserBiz; import com.pcloud.book.book.biz.BookAdviserBiz;
import com.pcloud.book.book.biz.BookBiz; import com.pcloud.book.book.biz.BookBiz;
import com.pcloud.book.book.constant.BookConstant;
import com.pcloud.book.book.dto.BookAdviserDto; import com.pcloud.book.book.dto.BookAdviserDto;
import com.pcloud.book.book.dto.BookDto; import com.pcloud.book.book.dto.BookDto;
import com.pcloud.book.book.dto.RaysSceneCatalogDto; import com.pcloud.book.book.dto.RaysSceneCatalogDto;
...@@ -89,6 +90,7 @@ import com.pcloud.wechatgroup.wxwork.dto.WxworkGroupQrcodeBaseDTO; ...@@ -89,6 +90,7 @@ import com.pcloud.wechatgroup.wxwork.dto.WxworkGroupQrcodeBaseDTO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils; import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.core.AmqpTemplate; import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
...@@ -1492,7 +1494,9 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -1492,7 +1494,9 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
} else { } else {
bookId = channelConsr.getBookId4SceneId(page.getSceneId()); bookId = channelConsr.getBookId4SceneId(page.getSceneId());
} }
if (bookId != null) { BookDto bookDto = bookBiz.getBaseById(bookId);
boolean isDefaultBook = StringUtils.isEmpty(bookDto.getSerialNumber()) && BookConstant.DEFAULT_BOOK_ISBN.equals(bookDto.getIsbn());
if (bookId != null && !isDefaultBook) {
Book book = new Book(); Book book = new Book();
book.setBookId(bookId); book.setBookId(bookId);
book.setLastModifiedUser(updateResourcePageVO.getCreateUser()); book.setLastModifiedUser(updateResourcePageVO.getCreateUser());
......
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