From 08ddfad4530a014094c06fe68b8c2d9a0753403a Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Wed, 05 Aug 2026 14:09:29 +0800
Subject: [PATCH] fix(gd): 修复线索事件查询中的SQL语法错误

---
 drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java |    9 +++++----
 1 files changed, 5 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 3314938..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
@@ -19,6 +19,8 @@
 import lombok.AllArgsConstructor;
 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;
@@ -44,8 +46,6 @@
 @Service
 @AllArgsConstructor
 public class GdClueEventStatusFlowServiceImpl extends BaseServiceImpl<GdClueEventStatusFlowMapper, GdClueEventStatusFlowEntity> implements IGdClueEventStatusFlowService {
-
-    private final IGdClueEventService gdClueEventService;
 
     /**
      * 根据事件ID查询状态流转记录列表
@@ -151,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("事件不存在");
         }
@@ -211,4 +212,4 @@
         return timeline;
     }
 
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3