diff --git a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java index 90d49ce9..6bcd733a 100644 --- a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java @@ -1419,7 +1419,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl list = new ArrayList<>(); for (CollectionElement collectionElement : collectionElements) { - if (collectionElement.getId() == Long.valueOf(collection.getMoodTemplateId())) { + if (Objects.equals(collectionElement.getId(), Long.valueOf(collection.getMoodTemplateId()))) { continue; } CollectionElementVO collectionElementVO = CopyUtil.copyObject(collectionElement, CollectionElementVO.class);