Administrator
2025-07-10 da2db225ce260663056c7a3b450d10de729fafc3
feat(mall): 优化评论查询逻辑

- 在查询衣服社交评论时,增加了对显示状态的筛选条件
- 仅查询显示状态为"UP"的评论,以提高查询效率和准确性
1 files modified
1 ■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java 1 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
@@ -587,6 +587,7 @@
                    Wrappers.lambdaQuery(ClothesSocialComment.class)
                            .select(ClothesSocialComment::getParentId)
                            .in(ClothesSocialComment::getParentId, collect)
                            .eq(ClothesSocialComment::getShowState, ClothesEnum.UP.getCode())
            );
            if (CollUtil.isNotEmpty(clothesSocialComments)){
                Map<Long, Long> collect1 = clothesSocialComments.stream()