Commit e3d8721e by 刘正

修复书没有被版权保护时接口报错的bug

parent 53f6ded4
...@@ -424,6 +424,10 @@ public class BookAuthInfoBizImpl implements BookAuthInfoBiz { ...@@ -424,6 +424,10 @@ public class BookAuthInfoBizImpl implements BookAuthInfoBiz {
@ParamLog("获取正版授权书基本信息与服务") @ParamLog("获取正版授权书基本信息与服务")
public BookAuthInfoAndServesVO getInfoAndServesByBook(Long bookId, Long channelId, Long adviserId, Integer authBookType) { public BookAuthInfoAndServesVO getInfoAndServesByBook(Long bookId, Long channelId, Long adviserId, Integer authBookType) {
BookAuthInfoVO bookAuthInfoVO = getInfoByBook(bookId, channelId, adviserId, authBookType); BookAuthInfoVO bookAuthInfoVO = getInfoByBook(bookId, channelId, adviserId, authBookType);
if(bookAuthInfoVO == null) {
return null;
}
BookAuthInfoAndServesVO bookAuthInfoAndServesVO = new BookAuthInfoAndServesVO(); BookAuthInfoAndServesVO bookAuthInfoAndServesVO = new BookAuthInfoAndServesVO();
BeanUtils.copyProperties(bookAuthInfoVO, bookAuthInfoAndServesVO); BeanUtils.copyProperties(bookAuthInfoVO, bookAuthInfoAndServesVO);
if(authBookType == null || AuthBookTypeEnum.PAPER_BOOK.value.equals(authBookType)) { if(authBookType == null || AuthBookTypeEnum.PAPER_BOOK.value.equals(authBookType)) {
......
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