From 90e89d927e78cd857c512fb3929ef1d08ac534a6 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Mon, 9 Feb 2026 15:54:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=BB=8F=E9=94=80?= =?UTF-8?q?=E5=95=86=E7=AD=9B=E9=80=89=E9=80=BB=E8=BE=91=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=BB=91=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tools/bbxt/bbxt.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/tools/bbxt/bbxt.go b/internal/tools/bbxt/bbxt.go index 1f9d2b6..be068bc 100644 --- a/internal/tools/bbxt/bbxt.go +++ b/internal/tools/bbxt/bbxt.go @@ -39,6 +39,8 @@ var ResellerBlackListProduct = []string{ "蓝星严选连续包月", "通钱-2025年12月", "彦浩同行", + "运营部测试专用", + "彦浩直客商户", } type BbxtTools struct { @@ -222,15 +224,19 @@ func (b *BbxtTools) StatisOursProductLossSum(ctx context.Context, now time.Time, ) // 构建分组 for _, v := range resellers { - if v.Total <= -100 && !slices.Contains(ResellerBlackListProduct, v.ResellerName) { + if slices.Contains(ResellerBlackListProduct, v.ResellerName) { + continue + } + if v.Total <= -100 { total = append(total, []string{ fmt.Sprintf("%s", v.ResellerName), fmt.Sprintf("%.2f", v.Total), }) - num := decimal.NewFromFloat(v.Total) - totalSum = totalSum.Add(num).Round(2) + totalDetail = append(totalDetail, v) } + num := decimal.NewFromFloat(v.Total) + totalSum = totalSum.Add(num).Round(2) //if v.Total <= -500 && !slices.Contains(ResellerBlackListProduct, v.ResellerName) { // gt = append(gt, v) // totalSum500 += v.Total