Commit 63f70d1c by 阮思源

Merge branch 'feat-fix500-3' into 'master'

修改

See merge request rays/pcloud-book!337
parents 0f7172fe 477c5de9
...@@ -293,7 +293,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz { ...@@ -293,7 +293,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
List<SelfRobotKeyword> keywords = selfRobotKeywordDao.getListByBookGroupId(selfRobotKeyword.getBookGroupId()); List<SelfRobotKeyword> keywords = selfRobotKeywordDao.getListByBookGroupId(selfRobotKeyword.getBookGroupId());
if (!ListUtils.isEmpty(keywords)){ if (!ListUtils.isEmpty(keywords)){
for (SelfRobotKeyword robotKeyword:keywords){ for (SelfRobotKeyword robotKeyword:keywords){
if (robotKeyword.getBookGroupId()!=selfRobotKeyword.getBookGroupId() if (!robotKeyword.getBookGroupId().equals(selfRobotKeyword.getBookGroupId())
&&robotKeyword.getKeyword().equals(selfRobotKeyword.getKeyword())){ &&robotKeyword.getKeyword().equals(selfRobotKeyword.getKeyword())){
throw new BookBizException(BookBizException.PARAM_IS_ERROR, "关键词不能重复!"); throw new BookBizException(BookBizException.PARAM_IS_ERROR, "关键词不能重复!");
} }
......
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