Bläddra i källkod

修复approve不发通知bug

zhangchen 1 vecka sedan
förälder
incheckning
03e61b35c8

+ 6 - 0
alien-lawyer/src/main/java/shop/alien/lawyer/service/impl/LawyerUserViolationServiceImpl.java

@@ -1032,6 +1032,12 @@ public class LawyerUserViolationServiceImpl extends ServiceImpl<LawyerUserViolat
                } else {
                    log.warn("订单状态更新失败,订单编号:{}", violation.getOrderNumber());
                }
+            } else {
+                // 审批驳回
+                log.info("订单状态更新成功,订单编号:{}", violation.getOrderNumber());
+
+                // 构建并发送通知消息
+                sendApprovalNotifications(violation, processingStatus, reportResult);
             }