瀏覽代碼

bugfix:3121待回复差评数量过滤掉已删除的

刘云鑫 2 月之前
父節點
當前提交
819cb11ff9
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      alien-store/src/main/java/shop/alien/store/service/impl/CommonRatingServiceImpl.java

+ 1 - 0
alien-store/src/main/java/shop/alien/store/service/impl/CommonRatingServiceImpl.java

@@ -364,6 +364,7 @@ public class CommonRatingServiceImpl extends ServiceImpl<CommonRatingMapper, Com
         List<CommonRating> commonRatings = commonRatingMapper.selectList(wrapper);
         List<Long> collect = commonRatings.stream().map(x -> x.getId()).collect(Collectors.toList());
         // 查询没有回复的评价数量
+        wrapper.eq(CommonRating::getDeleteFlag,0);
         Integer noReplyCount = commonRatingMapper.getRatingWithNoReply(wrapper);
 
         // 如果为空直接返回