From 86aff69316e2345f742b5e2b5bbab62543cb6e67 Mon Sep 17 00:00:00 2001
From: qixiaoning <jony.kee@outlook.com>
Date: 星期五, 25 七月 2025 10:14:58 +0800
Subject: [PATCH] 修复camera自增id问题;查询任务关联表增加isai,runtype状态判断;milvus字段精度问题修复

---
 chanmanage-service/service/pollSetService.go |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/chanmanage-service/service/pollSetService.go b/chanmanage-service/service/pollSetService.go
index 3fb386b..2ce32ea 100644
--- a/chanmanage-service/service/pollSetService.go
+++ b/chanmanage-service/service/pollSetService.go
@@ -176,12 +176,15 @@
 		}
 	}
 
+	//鑾峰彇鐫f煡浠诲姟
+	tasks := models.GetTasks()
+
 	rTotal := 0
 	pTotal := 0
 	for _, c := range camMap {
 		if c.RunType == bhomeclient.TYPE_RUNTYPE_REALTIME {
 			rTotal++
-			if crInfo, ok := ruleM[c.Id]; ok && crInfo.Rules != nil && len(crInfo.Rules) > 0 {
+			if taskInfo, ok := tasks[c.Id]; ok && taskInfo != nil && len(taskInfo) > 0 {
 				v.RealValidCount++
 			} else {
 				v.RealInvalidCount++
@@ -207,12 +210,13 @@
 	logger.Debug("statisticRunInfo 鑾峰彇瀹孍xistRunningTask鑰楁椂锛�", time.Since(timeStart))
 	timeStart = time.Now()
 
-	//杞閫氶亾鏁伴噺浠庤疆璇㈤厤缃腑鑾峰彇
-	var pollConf models.PollConfig
-	pcE, err2 := pollConf.GetOne()
-	if err2 == nil {
-		v.PollChannelCount = pcE.PollChannelCount
-	}
+	//杞閫氶亾鏁伴噺浠庤疆璇㈤厤缃腑鑾峰彇20250724绉婚櫎
+	// var pollConf models.PollConfig
+	// pcE, err2 := pollConf.GetOne()
+	// if err2 == nil {
+	// 	v.PollChannelCount = pcE.PollChannelCount
+	// }
+
 	//tmpPC := v.RealTotal - v.StackTotal
 	//if tmpPC < 0  {
 	//    v.PollChannelCount = 0

--
Gitblit v1.8.0