V0 抓取测试文件数据

This commit is contained in:
jh_peng 2024-11-08 18:17:56 +08:00
parent c9ccb0447e
commit 38cc8f7b14
2 changed files with 3 additions and 3 deletions

View File

@ -780,8 +780,8 @@ func CPMap(req *request.CPMap) (map[string]interface{}, error) {
// CP测试没有子批次
var fileHandle *model.FileHandled
global.PostGreSQL.Where("pbi = ? AND product = ? AND lot = ? AND wafer_id = ? AND step = ?",
req.PBI, req.Product, req.Lot, req.WaferID, req.Step).
global.PostGreSQL.Where("pbi = ? AND product = ? AND lot = ? AND wafer_id = ? AND step LIKE ?",
req.PBI, req.Product, req.Lot, req.WaferID, "%"+req.Step+"%").
Find(&fileHandle)
//f, err := os.Open(fileHandle.Path)

View File

@ -9,7 +9,7 @@ import (
func TestFilesHandlerCron() {
var fileTexts []*model.FileText
//global.PostGreSQL.Where("processed = ? AND doubt = ? AND factory != ?", false, false, "江苏芯德").Order("procedure").Find(&fileTexts)
global.PostGreSQL.Where("processed = ? AND doubt = ? AND factory != ?", false, false, "江苏芯德").Order("procedure").Find(&fileTexts)
global.PostGreSQL.Where("processed = ? AND doubt = ?", false, false).Order("procedure").Find(&fileTexts)
for _, fileText := range fileTexts {
if err := test_data.HandleSTS8200Excel(fileText); err != nil {
continue