From e4fc307d58856a0b319c41f0930cd3b731cb0b24 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 11 二月 2025 10:19:47 +0800
Subject: [PATCH] 修复规律分析bug

---
 models/gather_model.go |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/models/gather_model.go b/models/gather_model.go
index 64aa815..d0c2756 100644
--- a/models/gather_model.go
+++ b/models/gather_model.go
@@ -185,11 +185,17 @@
 			PicDate:       lt.Time,
 			FirstPersonID: personIds[0],
 		}
+
 		results = append(results, result)
 	}
 	return service.SaveTaskResults(results)
 }
 
+func (m *GatherModel) KeepAlive() error {
+	db.GetDB().Model(m.Task).Where("id = ?", m.Task.ID).Update("last_run_time", time.Now())
+	return nil
+}
+
 func (m *GatherModel) Shutdown() error {
 	// 娓呯悊璧勬簮
 	fmt.Println("Shutting down GatherModel Model")

--
Gitblit v1.8.0