Compare commits

...

2 Commits

1 changed files with 10 additions and 2 deletions

View File

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