Commit daca6eee by 裴大威

Merge branch 'fix-lz-getInfoAndServesByBook' into 'master'

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

See merge request rays/pcloud-book!295
parents 53f6ded4 e3d8721e
......@@ -424,6 +424,10 @@ public class BookAuthInfoBizImpl implements BookAuthInfoBiz {
@ParamLog("获取正版授权书基本信息与服务")
public BookAuthInfoAndServesVO getInfoAndServesByBook(Long bookId, Long channelId, Long adviserId, Integer authBookType) {
BookAuthInfoVO bookAuthInfoVO = getInfoByBook(bookId, channelId, adviserId, authBookType);
if(bookAuthInfoVO == null) {
return null;
}
BookAuthInfoAndServesVO bookAuthInfoAndServesVO = new BookAuthInfoAndServesVO();
BeanUtils.copyProperties(bookAuthInfoVO, bookAuthInfoAndServesVO);
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