数据分析平台

This commit is contained in:
jh_peng 2024-12-30 10:09:50 +08:00
parent edc414df11
commit 3e4841f303

View File

@ -31,11 +31,11 @@ func TestFilesHandlerCron() {
}) })
index := 0 index := 0
for { for {
if strings.Contains(strings.ToUpper(fileTexts[index].Name), "SUMMARY") {
index++
continue
}
if index+1 < len(fileTexts) { if index+1 < len(fileTexts) {
if strings.Contains(strings.ToUpper(fileTexts[index].Name), "SUMMARY") {
index++
continue
}
test_data.MT737(fileTexts[index+1], fileTexts[index]) test_data.MT737(fileTexts[index+1], fileTexts[index])
global.PostGreSQL.Transaction(func(tx *gorm.DB) error { global.PostGreSQL.Transaction(func(tx *gorm.DB) error {
tx.Model(&fileTexts[index+1]).Updates(map[string]interface{}{ tx.Model(&fileTexts[index+1]).Updates(map[string]interface{}{