Commit da2b727e by 阮思源

Merge branch 'feat-1002383-fix' into 'master'

1002383 书单服务页2处(个人号回复、H5技能页)设计--修改

See merge request rays/pcloud-book!434
parents dab59d36 3eca07db
......@@ -150,6 +150,9 @@ public class SearchBizImpl implements SearchBiz {
if (StringUtil.isEmpty(searchRecord.getWxId())){
throw new BookBizException(BookBizException.PARAM_IS_ERROR,"wxId不能为空!");
}
if (StringUtil.isEmpty(searchRecord.getContent())){
throw new BookBizException(BookBizException.PARAM_IS_ERROR,"内容不能为空!");
}
searchRecordDao.insert(searchRecord);
}
......@@ -239,6 +242,9 @@ public class SearchBizImpl implements SearchBiz {
if (currentPage==null||currentPage<0||numPerPage==null||numPerPage<=0){
throw new BookBizException(BookBizException.PARAM_IS_ERROR,"分页参数有误!");
}
if (StringUtil.isEmpty(content)){
throw new BookBizException(BookBizException.PARAM_IS_ERROR,"内容不能为空!");
}
Map<String,Object> map=new HashMap<>();
map.put("content",content);
map.put("bookId",bookId);
......
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