diff --git a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelCommentServiceImpl.java b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelCommentServiceImpl.java index 5ea5071..93dacaf 100644 --- a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelCommentServiceImpl.java +++ b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelCommentServiceImpl.java @@ -72,7 +72,7 @@ public class ModelCommentServiceImpl extends ServiceImpl modelCommentList = baseMapper.selectList( new LambdaQueryWrapper() + .isNull(ModelComment::getParentId) .eq(ModelComment::getModelId, modelId)); // 获取所有父评论的ID diff --git a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelImageCommentServiceImpl.java b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelImageCommentServiceImpl.java index 47f3657..d35c194 100644 --- a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelImageCommentServiceImpl.java +++ b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/ModelImageCommentServiceImpl.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.mcwl.common.core.domain.entity.SysUser; import com.mcwl.common.utils.SecurityUtils; +import com.mcwl.resource.domain.ModelComment; import com.mcwl.resource.domain.ModelImageComment; import com.mcwl.resource.domain.ModelImageCommentLike; import com.mcwl.resource.domain.WorkFlowComment; @@ -64,7 +65,7 @@ public class ModelImageCommentServiceImpl extends ServiceImpl modelImageCommentList = baseMapper.selectList( new LambdaQueryWrapper() + .isNull(ModelImageComment::getParentId) .eq(ModelImageComment::getModelImageId, imageId)); // 获取所有父评论的ID diff --git a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/WorkFlowCommentLikeServiceImpl.java b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/WorkFlowCommentLikeServiceImpl.java index 1745405..f4cbe28 100644 --- a/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/WorkFlowCommentLikeServiceImpl.java +++ b/mcwl-resource/src/main/java/com/mcwl/resource/service/impl/WorkFlowCommentLikeServiceImpl.java @@ -39,7 +39,7 @@ public class WorkFlowCommentLikeServiceImpl extends ServiceImpl modelCommentList = baseMapper.selectList( new LambdaQueryWrapper() + .isNull(WorkFlowComment::getParentId) .eq(WorkFlowComment::getWorkFlowId, workFlowId)); // 获取所有父评论的ID