From 3e23085154467f3e42fe791c702de9724b2ca5e4 Mon Sep 17 00:00:00 2001 From: jh_peng Date: Thu, 12 Dec 2024 09:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=89=AF=E7=8E=87-=E6=8C=89?= =?UTF-8?q?=E4=BA=A7=E5=93=81=20=E4=B8=8D=E8=89=AF=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/test.data/report.chart.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repository/test.data/report.chart.go b/repository/test.data/report.chart.go index d5e17fc..0e89de1 100644 --- a/repository/test.data/report.chart.go +++ b/repository/test.data/report.chart.go @@ -424,16 +424,16 @@ func FTPassProbabilityByProduct(r *request.PassProbabilityByProduct) (*model.Lin binMap["10"] += bin10 outlookFailDecimal, _ := decimal.NewFromString(report.OutlookFail) outlookFail, _ := outlookFailDecimal.Float64() - binMap["outlook_fail"] += outlookFail + binMap["外观不良"] += outlookFail scrappedDecimal, _ := decimal.NewFromString(report.Scrapped) scrapped, _ := scrappedDecimal.Float64() - binMap["scrapped"] += scrapped + binMap["报废"] += scrapped bentStitchDecimal, _ := decimal.NewFromString(report.BentStitch) bentStitch, _ := bentStitchDecimal.Float64() - binMap["bent_stitch"] += bentStitch + binMap["弯脚"] += bentStitch otherDecimal, _ := decimal.NewFromString(report.Other) other, _ := otherDecimal.Float64() - binMap["other"] += other + binMap["少数"] += other } month := carbon.Now().SubYear().AddMonth().Format("Y-m") var testStr, passStr string