Commit c1aeec50 by 吴博

geren

parent 332632e2
...@@ -59,7 +59,8 @@ public class PcloudUserLabelBizImpl implements PcloudUserLabelBiz { ...@@ -59,7 +59,8 @@ public class PcloudUserLabelBizImpl implements PcloudUserLabelBiz {
List<Integer> labelIdList = pcloudUserLabels.stream().map(e -> e.getPcloudLabelId()).collect(Collectors.toList()); List<Integer> labelIdList = pcloudUserLabels.stream().map(e -> e.getPcloudLabelId()).collect(Collectors.toList());
if (!ListUtils.isEmpty(pcloudUserLabelDtos)){ if (!ListUtils.isEmpty(pcloudUserLabelDtos)){
List<Integer> labelIds = pcloudUserLabelDtos.stream().map(e -> e.getPcloudLabelId()).collect(Collectors.toList()); List<Integer> labelIds = pcloudUserLabelDtos.stream().map(e -> e.getPcloudLabelId()).collect(Collectors.toList());
if (labelIds.retainAll(labelIdList)){ labelIds.retainAll(labelIdList);
if (labelIds.size() > 0){
throw new BookBizException(BookBizException.PARAM_IS_NULL,"标签已存在!"); throw new BookBizException(BookBizException.PARAM_IS_NULL,"标签已存在!");
} }
} }
......
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