From aed04af9cd69372fb593df152e855023c748fb2e Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Thu, 8 Jan 2026 10:35:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=BB=8F=E9=94=80?= =?UTF-8?q?=E5=95=86=E9=BB=91=E5=90=8D=E5=8D=95=E6=95=B0=E6=8D=AE=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tools/bbxt/bbxt.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/internal/tools/bbxt/bbxt.go b/internal/tools/bbxt/bbxt.go index 63333df..ee8ddbf 100644 --- a/internal/tools/bbxt/bbxt.go +++ b/internal/tools/bbxt/bbxt.go @@ -29,6 +29,14 @@ var resellerBlackList = []string{ "通钱-2025年12月", } +var resellerBlackListProduct = []string{ + "悦跑", + "电商-独立", + "蓝星严选连续包月", + "通钱-2025年12月", + "彦浩同行", +} + type BbxtTools struct { cacheDir string excelTempDir string @@ -149,14 +157,14 @@ func (b *BbxtTools) StatisOursProductLossSum(now time.Time) (report []*ReportRes ) // 构建分组 for _, v := range resellers { - if v.Total <= -100 && !slices.Contains(resellerBlackList, v.ResellerName) { + if v.Total <= -100 && !slices.Contains(resellerBlackListProduct, v.ResellerName) { total = append(total, []string{ fmt.Sprintf("%s", v.ResellerName), fmt.Sprintf("%.2f", v.Total), }) totalSum += v.Total } - if v.Total <= -500 && !slices.Contains(resellerBlackList, v.ResellerName) { + if v.Total <= -500 && !slices.Contains(resellerBlackListProduct, v.ResellerName) { gt = append(gt, v) totalSum500 += v.Total }