From 3e4841f303843f9d295a9968c90c3905dfc7959a Mon Sep 17 00:00:00 2001 From: jh_peng Date: Mon, 30 Dec 2024 10:09:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/test.file.handler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repository/test.file.handler.go b/repository/test.file.handler.go index a5ea77e..8057e82 100644 --- a/repository/test.file.handler.go +++ b/repository/test.file.handler.go @@ -31,11 +31,11 @@ func TestFilesHandlerCron() { }) index := 0 for { - if strings.Contains(strings.ToUpper(fileTexts[index].Name), "SUMMARY") { - index++ - continue - } if index+1 < len(fileTexts) { + if strings.Contains(strings.ToUpper(fileTexts[index].Name), "SUMMARY") { + index++ + continue + } test_data.MT737(fileTexts[index+1], fileTexts[index]) global.PostGreSQL.Transaction(func(tx *gorm.DB) error { tx.Model(&fileTexts[index+1]).Updates(map[string]interface{}{