feat: 增加分销商黑名单

This commit is contained in:
fuzhongyun 2025-12-31 16:10:08 +08:00
parent 2d725ecd53
commit 06606539d2
1 changed files with 9 additions and 1 deletions

View File

@ -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
}