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 |    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