测试良率-按产品 不良图表字段名称修改
This commit is contained in:
parent
107efc1b1f
commit
3e23085154
@ -424,16 +424,16 @@ func FTPassProbabilityByProduct(r *request.PassProbabilityByProduct) (*model.Lin
|
|||||||
binMap["10"] += bin10
|
binMap["10"] += bin10
|
||||||
outlookFailDecimal, _ := decimal.NewFromString(report.OutlookFail)
|
outlookFailDecimal, _ := decimal.NewFromString(report.OutlookFail)
|
||||||
outlookFail, _ := outlookFailDecimal.Float64()
|
outlookFail, _ := outlookFailDecimal.Float64()
|
||||||
binMap["outlook_fail"] += outlookFail
|
binMap["外观不良"] += outlookFail
|
||||||
scrappedDecimal, _ := decimal.NewFromString(report.Scrapped)
|
scrappedDecimal, _ := decimal.NewFromString(report.Scrapped)
|
||||||
scrapped, _ := scrappedDecimal.Float64()
|
scrapped, _ := scrappedDecimal.Float64()
|
||||||
binMap["scrapped"] += scrapped
|
binMap["报废"] += scrapped
|
||||||
bentStitchDecimal, _ := decimal.NewFromString(report.BentStitch)
|
bentStitchDecimal, _ := decimal.NewFromString(report.BentStitch)
|
||||||
bentStitch, _ := bentStitchDecimal.Float64()
|
bentStitch, _ := bentStitchDecimal.Float64()
|
||||||
binMap["bent_stitch"] += bentStitch
|
binMap["弯脚"] += bentStitch
|
||||||
otherDecimal, _ := decimal.NewFromString(report.Other)
|
otherDecimal, _ := decimal.NewFromString(report.Other)
|
||||||
other, _ := otherDecimal.Float64()
|
other, _ := otherDecimal.Float64()
|
||||||
binMap["other"] += other
|
binMap["少数"] += other
|
||||||
}
|
}
|
||||||
month := carbon.Now().SubYear().AddMonth().Format("Y-m")
|
month := carbon.Now().SubYear().AddMonth().Format("Y-m")
|
||||||
var testStr, passStr string
|
var testStr, passStr string
|
||||||
|
Loading…
Reference in New Issue
Block a user