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