测试良率-按产品 不良图表字段增加
This commit is contained in:
parent
399a67b1f9
commit
107efc1b1f
@ -428,6 +428,9 @@ func FTPassProbabilityByProduct(r *request.PassProbabilityByProduct) (*model.Lin
|
|||||||
scrappedDecimal, _ := decimal.NewFromString(report.Scrapped)
|
scrappedDecimal, _ := decimal.NewFromString(report.Scrapped)
|
||||||
scrapped, _ := scrappedDecimal.Float64()
|
scrapped, _ := scrappedDecimal.Float64()
|
||||||
binMap["scrapped"] += scrapped
|
binMap["scrapped"] += scrapped
|
||||||
|
bentStitchDecimal, _ := decimal.NewFromString(report.BentStitch)
|
||||||
|
bentStitch, _ := bentStitchDecimal.Float64()
|
||||||
|
binMap["bent_stitch"] += bentStitch
|
||||||
otherDecimal, _ := decimal.NewFromString(report.Other)
|
otherDecimal, _ := decimal.NewFromString(report.Other)
|
||||||
other, _ := otherDecimal.Float64()
|
other, _ := otherDecimal.Float64()
|
||||||
binMap["other"] += other
|
binMap["other"] += other
|
||||||
|
Loading…
Reference in New Issue
Block a user