From 4089aa80ff08eefd20c3da11600ae6f904c1e4f8 Mon Sep 17 00:00:00 2001 From: jh_peng Date: Wed, 12 Mar 2025 09:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=20FT=E8=AE=B0=E5=BD=95=E6=97=A7=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=99=B6=E5=9C=86=E5=9E=8B=E5=8F=B7=E9=87=8D=E6=96=B0=E6=8A=93?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/test.data/report.list.cron.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/repository/test.data/report.list.cron.go b/repository/test.data/report.list.cron.go index ec0191e..4324c1d 100644 --- a/repository/test.data/report.list.cron.go +++ b/repository/test.data/report.list.cron.go @@ -994,6 +994,16 @@ func CronFTList() { } else if tcSfd.SfbFile.Sfb04 == "0" { 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 orderDateStockMap := make(map[string][]float64) @@ -1020,6 +1030,7 @@ func CronFTList() { global.PostGreSQL.Transaction(func(tx *gorm.DB) error { global.PostGreSQL.Model(&ftList).Where("pbi = ? AND outsourcing_pbi = ?", tcSfc.TcSfc01, tcSfd.TcSfd13).Updates(map[string]interface{}{ + "wafer_product": waferProduct, "status": status, "online_quantity": tcSfd.TcSfd05 - returnQuantity, "return_quantity": returnQuantity,