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 {