数据分析平台 FT记录旧数据晶圆型号重新抓取
This commit is contained in:
parent
98fdccf628
commit
4089aa80ff
@ -994,6 +994,16 @@ func CronFTList() {
|
|||||||
} else if tcSfd.SfbFile.Sfb04 == "0" {
|
} else if tcSfd.SfbFile.Sfb04 == "0" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
var waferProduct string
|
||||||
|
for _, tcSfe := range tcSfc.TcSfeFile {
|
||||||
|
if tcSfe.TcSfe01 == tcSfc.TcSfc01 && tcSfe.TcSfe02 == tcSfd.TcSfd02 {
|
||||||
|
if (tcSfc.TcSfc08 == "FT" || (tcSfc.TcSfc08 == "ABFT" && tcSfc.TcSfc10 == "Y")) && !strings.Contains(tcSfc.TcSfc01, "M599") {
|
||||||
|
waferProduct = tcSfe.BmbFile.ImaFile.Ima02
|
||||||
|
} else {
|
||||||
|
waferProduct = tcSfe.ImaFile.Ima02
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var returnQuantity, passQuantity, failQuantity float64
|
var returnQuantity, passQuantity, failQuantity float64
|
||||||
orderDateStockMap := make(map[string][]float64)
|
orderDateStockMap := make(map[string][]float64)
|
||||||
@ -1020,6 +1030,7 @@ func CronFTList() {
|
|||||||
global.PostGreSQL.Transaction(func(tx *gorm.DB) error {
|
global.PostGreSQL.Transaction(func(tx *gorm.DB) error {
|
||||||
global.PostGreSQL.Model(&ftList).Where("pbi = ? AND outsourcing_pbi = ?",
|
global.PostGreSQL.Model(&ftList).Where("pbi = ? AND outsourcing_pbi = ?",
|
||||||
tcSfc.TcSfc01, tcSfd.TcSfd13).Updates(map[string]interface{}{
|
tcSfc.TcSfc01, tcSfd.TcSfd13).Updates(map[string]interface{}{
|
||||||
|
"wafer_product": waferProduct,
|
||||||
"status": status,
|
"status": status,
|
||||||
"online_quantity": tcSfd.TcSfd05 - returnQuantity,
|
"online_quantity": tcSfd.TcSfd05 - returnQuantity,
|
||||||
"return_quantity": returnQuantity,
|
"return_quantity": returnQuantity,
|
||||||
|
Loading…
Reference in New Issue
Block a user