数据分析平台
This commit is contained in:
parent
2589363221
commit
2a364ae302
3
main.go
3
main.go
@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"testData/initialization"
|
||||
"testData/repository"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -15,6 +16,8 @@ func main() {
|
||||
initialization.InitCronListCron()
|
||||
initialization.InitEmailCron()
|
||||
initialization.InitTestFilesHandlerCron()
|
||||
initialization.InitCronCheckListCron()
|
||||
repository.TestFilesHandlerCron()
|
||||
|
||||
//var fileHandles []*model.FileHandled
|
||||
//global.PostGreSQL.Where("lot = ? AND step = ?", "S3S592", "FT").Find(&fileHandles)
|
||||
|
@ -13,6 +13,9 @@ func TestFilesHandlerCron() {
|
||||
global.PostGreSQL.Where("processed = ? AND doubt = ? AND factory NOT IN ?", false, false, []string{"亚芯微", "铜陵碁明"}).Order("procedure").Find(&fileTexts)
|
||||
for _, fileText := range fileTexts {
|
||||
if err := test_data.HandleSTS8200Excel(fileText); err != nil {
|
||||
global.PostGreSQL.Model(&fileTexts).Updates(map[string]interface{}{
|
||||
"doubt": true,
|
||||
})
|
||||
continue
|
||||
}
|
||||
global.PostGreSQL.Model(&fileTexts).Updates(map[string]interface{}{
|
||||
|
Loading…
Reference in New Issue
Block a user