数据分析平台
This commit is contained in:
parent
edc414df11
commit
3e4841f303
@ -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{}{
|
||||||
|
Loading…
Reference in New Issue
Block a user