Commit 3eca07db by 阮思源

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

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