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