|
|
@@ -156,7 +156,7 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
|
|
|
}
|
|
|
|
|
|
// 发送通知
|
|
|
- sendAuditNotification(appeal, orderReview, status);
|
|
|
+ sendAuditNotification(appeal, orderReview, status, reviewReasons);
|
|
|
|
|
|
return R.success("申诉" + statusText);
|
|
|
} else {
|
|
|
@@ -222,16 +222,16 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
|
|
|
* @param orderReview 评价记录
|
|
|
* @param status 审核状态 1:已通过, 2:已驳回
|
|
|
*/
|
|
|
- private void sendAuditNotification(CommentAppeal appeal, OrderReview orderReview, Integer status) {
|
|
|
+ private void sendAuditNotification(CommentAppeal appeal, OrderReview orderReview, Integer status, String reviewReasons) {
|
|
|
try {
|
|
|
if (status == 1) {
|
|
|
// 审核通过:给评价用户发通知(评价被删除)
|
|
|
sendNotificationToReviewUser(orderReview, appeal);
|
|
|
// 审核通过:给律师发通知(申诉成功)
|
|
|
- sendNotificationToLawyer(orderReview, appeal, true);
|
|
|
+ sendNotificationToLawyer(orderReview, appeal, true, null);
|
|
|
} else {
|
|
|
// 审核驳回:给律师发通知(申诉失败)
|
|
|
- sendNotificationToLawyer(orderReview, appeal, false);
|
|
|
+ sendNotificationToLawyer(orderReview, appeal, false, reviewReasons);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.error("发送审核通知失败,appealId={}, status={}, error={}", appeal.getId(), status, e.getMessage(), e);
|
|
|
@@ -285,7 +285,7 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
|
|
|
* @param appeal 申诉记录
|
|
|
* @param isSuccess 是否成功
|
|
|
*/
|
|
|
- private void sendNotificationToLawyer(OrderReview orderReview, CommentAppeal appeal, boolean isSuccess) {
|
|
|
+ private void sendNotificationToLawyer(OrderReview orderReview, CommentAppeal appeal, boolean isSuccess, String reviewReasons) {
|
|
|
try {
|
|
|
LawyerUser lawyerUser = lawyerUserMapper.selectById(orderReview.getLawyerUserId());
|
|
|
if (lawyerUser == null) {
|
|
|
@@ -298,7 +298,7 @@ public class CommentAppealServiceImpl extends ServiceImpl<CommentAppealMapper, C
|
|
|
String title = isSuccess ? "申诉成功通知" : "申诉失败通知";
|
|
|
String message = isSuccess
|
|
|
? String.format("您的编号"+ orderReview.getOrderNumber() +"的订单,提交的差评申诉信息,经核实,评价内容不实,平台已删除此条评价。")
|
|
|
- : String.format("您的编号"+ orderReview.getOrderNumber() +"的订单,提交的差评申诉信息,经核实,评价内容属实。失败原因:"+ appeal.getReviewReasons() +"。");
|
|
|
+ : String.format("您的编号"+ orderReview.getOrderNumber() +"的订单,提交的差评申诉信息,经核实,评价内容属实。失败原因:"+ reviewReasons +"。");
|
|
|
|
|
|
LifeNotice lifeNotice = new LifeNotice();
|
|
|
lifeNotice.setReceiverId(receiverId);
|