Просмотр исходного кода

商家申述,AI审核通过,调用评分修改后的删除接口

liudongzhi 1 неделя назад
Родитель
Сommit
569986492d

+ 4 - 2
alien-store/src/main/java/shop/alien/store/service/StoreCommentAppealSupplementJobService.java

@@ -45,6 +45,7 @@ public class StoreCommentAppealSupplementJobService {
     private final CommonCommentMapper commonCommentMapper;
     private final LifeLikeRecordMapper lifeLikeRecordMapper;
     private final StoreInfoMapper storeInfoMapper;
+    private final CommonRatingService commonRatingService;
 
     @Value("${third-party-user-name.base-url}")
     private String userName;
@@ -393,8 +394,9 @@ public class StoreCommentAppealSupplementJobService {
         try {
             CommonRating rating = commonRatingMapper.selectById(ratingId);
             if (rating != null) {
-                int rows = commonRatingMapper.logicDeleteById(ratingId);
-                log.info("【用户补充申诉】删除评价,ratingId={},影响行数={}", ratingId, rows);
+//                int rows = commonRatingMapper.logicDeleteById(ratingId);
+                commonRatingService.updateStoreScoreAfterDelete(rating.getBusinessId());
+                log.info("【用户补充申诉】删除评价,ratingId={}", ratingId);
             }
 
             LambdaQueryWrapper<CommonComment> commentQueryWrapper = new LambdaQueryWrapper<>();