From 4d730af0447c686133130d0116a0fa3dd82c2dca Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:41:03 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' into wcd

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/approval/rest/ApproveEventController.java |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/approval/rest/ApproveEventController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/approval/rest/ApproveEventController.java
index 9cfe76a..1ea1780 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/approval/rest/ApproveEventController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/approval/rest/ApproveEventController.java
@@ -15,12 +15,12 @@
 */
 package me.zhengjie.modules.approval.rest;
 
-import me.zhengjie.annotation.AnonymousAccess;
 import me.zhengjie.annotation.Log;
 import me.zhengjie.modules.approval.domain.ApproveEvent;
 import me.zhengjie.modules.approval.service.ApproveEventService;
 import me.zhengjie.modules.approval.service.dto.ApproveEventQueryCriteria;
 import me.zhengjie.modules.temp.event.ChangeApprovalStatusEvent;
+import me.zhengjie.modules.temp.service.WechatSendHistoryService;
 import org.springframework.context.ApplicationEventPublisher;
 import org.springframework.data.domain.Pageable;
 import lombok.RequiredArgsConstructor;
@@ -45,6 +45,7 @@
 public class ApproveEventController {
 
     private final ApproveEventService approveEventService;
+    private final WechatSendHistoryService wechatSendHistoryService;
     private final ApplicationEventPublisher applicationEventPublisher;
 
     @Log("导出数据")
@@ -89,11 +90,16 @@
         return new ResponseEntity<>(HttpStatus.OK);
     }
 
-    @AnonymousAccess
-    @GetMapping(value = "/test/{id}")
-    public ResponseEntity<Object> test(@PathVariable Long id) {
+    @GetMapping(value = "/changeById/{id}")
+    public ResponseEntity<Object> changeById(@PathVariable Long id) {
         ChangeApprovalStatusEvent event = new ChangeApprovalStatusEvent(new Object(), id);
         applicationEventPublisher.publishEvent(event);
         return new ResponseEntity<>(HttpStatus.OK);
     }
+
+    @GetMapping(value = "/changeBySpNo/{spNo}")
+    public ResponseEntity<Object> changeBySpNo(@PathVariable String spNo) {
+        wechatSendHistoryService.handleWechatSendHistoryBySpNo(spNo);
+        return new ResponseEntity<>(HttpStatus.OK);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3