Explorar el Código

bugfix:3121待回复差评数量

刘云鑫 hace 2 meses
padre
commit
e364f80f5e

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

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