|
|
@@ -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<>();
|