V0
This commit is contained in:
parent
4a4ea894aa
commit
4285468983
@ -708,7 +708,6 @@ func SaveFT(report *model.Report) { //pbi, product, lot, subBatch string,
|
||||
|
||||
}
|
||||
|
||||
log.Println(binCounter["1"], len(datas))
|
||||
firstPassProbabilityDecimal := decimal.NewFromFloat(float64(binCounter["1"]) / float64(len(datas)) * 100).Round(2).String()
|
||||
passProbabilityDecimal := decimal.NewFromFloat(float64(binCounter["1"]+passCounter) / float64(len(datas)) * 100).Round(2).String()
|
||||
global.PostGreSQL.Model(&report).Updates(map[string]interface{}{
|
||||
|
Loading…
Reference in New Issue
Block a user