From 99b371ac98d700976d569ab6b51e69703a841c49 Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Fri, 31 Jul 2026 14:05:48 +0800
Subject: [PATCH] feat(workorder): 添加事件状态时间线功能

---
 drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java b/drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java
index 8f87889..9e0e5f4 100644
--- a/drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java
+++ b/drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java
@@ -20,6 +20,7 @@
 import lombok.extern.slf4j.Slf4j;
 import org.springblade.core.secure.utils.AuthUtil;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.sxkj.common.utils.SpringContextUtil;
 import org.sxkj.gd.workorder.entity.GdClueEventEntity;
 import org.sxkj.gd.workorder.entity.GdClueEventStatusFlowEntity;
 import org.sxkj.gd.workorder.enums.EventStatusEnum;
@@ -45,9 +46,6 @@
 @Service
 @AllArgsConstructor
 public class GdClueEventStatusFlowServiceImpl extends BaseServiceImpl<GdClueEventStatusFlowMapper, GdClueEventStatusFlowEntity> implements IGdClueEventStatusFlowService {
-
-	@Autowired
-    private  IGdClueEventService gdClueEventService;
 
     /**
      * 根据事件ID查询状态流转记录列表
@@ -153,7 +151,8 @@
         }
 
         // 2. 查询事件当前状态
-        GdClueEventEntity event = gdClueEventService.getById(eventId);
+		IGdClueEventService gdClueEventService = SpringContextUtil.getBean(IGdClueEventService.class);
+		GdClueEventEntity event = gdClueEventService.getById(eventId);
         if (event == null) {
             throw new RuntimeException("事件不存在");
         }

--
Gitblit v1.9.3