Commit 4a4d9f5f by 阮思源

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

修改

See merge request rays/pcloud-book!338
parents 63f70d1c 93e5f0b4
......@@ -293,7 +293,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
List<SelfRobotKeyword> keywords = selfRobotKeywordDao.getListByBookGroupId(selfRobotKeyword.getBookGroupId());
if (!ListUtils.isEmpty(keywords)){
for (SelfRobotKeyword robotKeyword:keywords){
if (!robotKeyword.getBookGroupId().equals(selfRobotKeyword.getBookGroupId())
if (!robotKeyword.getId().equals(selfRobotKeyword.getId())
&&robotKeyword.getKeyword().equals(selfRobotKeyword.getKeyword())){
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