|
|
@@ -71,12 +71,13 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
|
|
|
return R.fail("该评论已有申诉记录,无法重复申诉");
|
|
|
}
|
|
|
|
|
|
- // 如果orderId为空,从OrderReview中获取
|
|
|
- if (commentAppeal.getOrderId() == null) {
|
|
|
- OrderReview orderReview = orderReviewMapper.selectById(commentAppeal.getCommentId());
|
|
|
- if (orderReview != null && orderReview.getOrderId() != null) {
|
|
|
+ OrderReview orderReview = orderReviewMapper.selectById(commentAppeal.getCommentId());
|
|
|
+ if(orderReview != null){
|
|
|
+ if (orderReview.getOrderId() != null) {
|
|
|
commentAppeal.setOrderId(orderReview.getOrderId());
|
|
|
}
|
|
|
+ orderReview.setAppealStatus(1);
|
|
|
+ orderReviewMapper.insert(orderReview);
|
|
|
}
|
|
|
|
|
|
// 设置默认值
|