From 5ddbba56c1313503bc55e23d404e2eaa7b05a0db Mon Sep 17 00:00:00 2001 From: jh_peng Date: Wed, 25 Dec 2024 14:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/test.data/report.list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/test.data/report.list.go b/repository/test.data/report.list.go index 4840a78..eadf4f5 100644 --- a/repository/test.data/report.list.go +++ b/repository/test.data/report.list.go @@ -1023,11 +1023,11 @@ func FTList(r *request.FTList) ([]*model.FTShowList, int64) { listPassQuantity, _ := decimal.NewFromString(ftShowList.PassQuantity) ftShowList.TestQuantity = testQuantity.Add(listTestQuantity).String() ftShowList.PassQuantity = passQuantity.Add(listPassQuantity).String() - ftShowList.PassProbability = passQuantity.Add(listPassQuantity).Div(testQuantity.Add(listTestQuantity)). - Round(4).Mul(decimal.NewFromInt(100)).String() + "%" ftShowList.FirstPassQuantity = firstPassQuantity.Add(listFirstPassQuantity).String() if !testQuantity.Add(listTestQuantity).IsZero() { + ftShowList.PassProbability = passQuantity.Add(listPassQuantity).Div(testQuantity.Add(listTestQuantity)). + Round(4).Mul(decimal.NewFromInt(100)).String() + "%" ftShowList.FirstPassProbability = firstPassQuantity.Add(listFirstPassQuantity).Div(testQuantity.Add(listTestQuantity)). Round(4).Mul(decimal.NewFromInt(100)).String() + "%" }