Kaynağa Gözat

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

刘云鑫 2 ay önce
ebeveyn
işleme
819cb11ff9

+ 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);
 
         // 如果为空直接返回