测试良率-按产品 不良图表字段增加

This commit is contained in:
jh_peng 2024-12-12 09:44:53 +08:00
parent 399a67b1f9
commit 107efc1b1f

View File

@ -428,6 +428,9 @@ func FTPassProbabilityByProduct(r *request.PassProbabilityByProduct) (*model.Lin
scrappedDecimal, _ := decimal.NewFromString(report.Scrapped)
scrapped, _ := scrappedDecimal.Float64()
binMap["scrapped"] += scrapped
bentStitchDecimal, _ := decimal.NewFromString(report.BentStitch)
bentStitch, _ := bentStitchDecimal.Float64()
binMap["bent_stitch"] += bentStitch
otherDecimal, _ := decimal.NewFromString(report.Other)
other, _ := otherDecimal.Float64()
binMap["other"] += other