From 2fca78b4607264e13a11f0deb84c34c9ac9489cc Mon Sep 17 00:00:00 2001
From: yao-zengchun <yao-zengchun@smhc.co.jp>
Date: Fri, 23 May 2025 08:44:59 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' of http://192.168.1.110:5678/r/pms-upgrade 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