Commit 3a99e3f5 by 阮思源

加个判断

parent a24b0d71
......@@ -1066,9 +1066,13 @@ public class BookGroupBizImpl implements BookGroupBiz {
if (bookGroupId == null) {
throw new BookBizException(BookBizException.PARAM_IS_ERROR, "参数不能为空");
}
if (bookGroupDao.getDTOById(bookGroupId) == null) {
BookGroupDTO dto = bookGroupDao.getDTOById(bookGroupId);
if (dto == null) {
throw new BookBizException(BookBizException.PARAM_IS_ERROR, "没有该数据!");
}
if (dto.getBookId() != null && !new Long(0L).equals(dto.getBookId())) {
throw new BookBizException(BookBizException.PARAM_IS_ERROR, "该社群码已经绑定图书!");
}
ClassifyAndGroupCountVO classifyAndGroupCount = bookGroupClassifyBiz.getClassifyAndGroupCount(bookGroupId);
if (classifyAndGroupCount != null
&& ((classifyAndGroupCount.getClassifyCount() != null && classifyAndGroupCount.getClassifyCount() > 0)
......
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