21 lines
575 B
Go
21 lines
575 B
Go
package repository
|
|
|
|
import (
|
|
"fmt"
|
|
"testData/global"
|
|
"testData/model"
|
|
"testData/repository/test.data"
|
|
"time"
|
|
)
|
|
|
|
func TestFilesHandlerCron() {
|
|
start := time.Now()
|
|
var fileTexts []*model.FileText
|
|
//global.PostGreSQL.Where("processed = ?", false).Group("pbi,lot,procedure").Select("pbi,lot,procedure").Find(&fileTexts)
|
|
global.PostGreSQL.Where("processed = ? AND factory != ?", false, "江苏芯德").Order("procedure").Find(&fileTexts)
|
|
for _, fileText := range fileTexts {
|
|
test_data.HandleSTS8200Excel(fileText)
|
|
}
|
|
fmt.Println("执行时间:", time.Since(start))
|
|
}
|