26 lines
575 B
Go
26 lines
575 B
Go
package repository
|
|
|
|
import (
|
|
"strings"
|
|
"testData/global"
|
|
"testData/model"
|
|
)
|
|
|
|
// ChengTe 诚特
|
|
func ChengTe() {
|
|
var fileTexts []*model.FileText
|
|
global.PostGreSQL.Debug().
|
|
Where("factory = ?", "chengte").
|
|
Where("name LIKE ? AND name NOT LIKE ? AND name NOT LIKE ? AND name NOT LIKE ? AND name NOT LIKE ?",
|
|
"%FT%", "%FT_LV%", "%FT_EQC%", "%FT_QC%", "%FT_NT%").Find(&fileTexts)
|
|
for _, fileText := range fileTexts {
|
|
var step string
|
|
if strings.Contains(fileText.Name, "RT") {
|
|
step = "RT"
|
|
} else {
|
|
step = "FT"
|
|
}
|
|
HandlerTQT601Excel(fileText, step)
|
|
}
|
|
}
|