From a36a86554cd207fdbe54b773d7f6b4671577da83 Mon Sep 17 00:00:00 2001 From: jh_peng Date: Thu, 17 Apr 2025 09:52:26 +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=20=E8=AE=B0=E5=BD=95=E5=9B=9E=E8=B4=A7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8A=93=E5=8F=96=E8=A7=84=E5=88=99=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/test.data/report.list.cron.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/repository/test.data/report.list.cron.go b/repository/test.data/report.list.cron.go index c66bd58..049dac5 100644 --- a/repository/test.data/report.list.cron.go +++ b/repository/test.data/report.list.cron.go @@ -314,6 +314,10 @@ func CronABList() { for _, abListStock := range abListStocks { if abListStock.ReturnDate == k { isHandled = true + global.PostGreSQL.Model(&abListStock).Updates(map[string]interface{}{ + "pass_quantity": v[0], + "fail_quantity": v[1], + }) } } if !isHandled { @@ -564,6 +568,10 @@ func CronBPList() { for _, bpListStock := range bpListStocks { if bpListStock.ReturnDate == k { isHandled = true + global.PostGreSQL.Model(&bpListStock).Updates(map[string]interface{}{ + "pass_quantity": v[0], + "fail_quantity": v[1], + }) } } if !isHandled { @@ -779,6 +787,10 @@ func CronCPList() { for _, cpListStock := range cpListStocks { if cpListStock.ReturnDate == k { isHandled = true + global.PostGreSQL.Model(&cpListStock).Updates(map[string]interface{}{ + "pass_quantity": v[0], + "fail_quantity": v[1], + }) } } if !isHandled { @@ -1451,6 +1463,10 @@ func CronTRList() { for _, trListStock := range trListStocks { if trListStock.ReturnDate == k { isHandled = true + global.PostGreSQL.Model(&trListStock).Updates(map[string]interface{}{ + "pass_quantity": v[0], + "fail_quantity": v[1], + }) } } if !isHandled {