diff --git a/internal/tools/bbxt/bbxt.go b/internal/tools/bbxt/bbxt.go index 4a0893b..cb3ebba 100644 --- a/internal/tools/bbxt/bbxt.go +++ b/internal/tools/bbxt/bbxt.go @@ -5,6 +5,7 @@ import ( "ai_scheduler/pkg" "fmt" "math/rand" + "slices" "sort" @@ -16,6 +17,13 @@ const ( GreenStyle = "${color: 00B050;horizontal:center;vertical:center;borderColor:#000000}" ) +var resellerBlackList = []string{ + "悦跑", + "电商-独立", + "蓝星严选连续包月", + "通钱", +} + type BbxtTools struct { cacheDir string excelTempDir string @@ -138,7 +146,7 @@ func (b *BbxtTools) StatisOursProductLossSum(now time.Time) (report []*ReportRes fmt.Sprintf("%.2f", v.Total), }) } - if v.Total <= -500 { + if v.Total <= -500 && !slices.Contains(resellerBlackList, v.ResellerName) { gt = append(gt, v) totalSum500 += v.Total }