Compare commits

..

No commits in common. "cf8a624dd0f3dc668c70957a6f09a9cb1679749f" and "eb398a4b4d16fdfe68ed6a61b854d8d43e2999e3" have entirely different histories.

1 changed files with 2 additions and 10 deletions

View File

@ -29,14 +29,6 @@ var resellerBlackList = []string{
"通钱-2025年12月", "通钱-2025年12月",
} }
var resellerBlackListProduct = []string{
"悦跑",
"电商-独立",
"蓝星严选连续包月",
"通钱-2025年12月",
"彦浩同行",
}
type BbxtTools struct { type BbxtTools struct {
cacheDir string cacheDir string
excelTempDir string excelTempDir string
@ -157,14 +149,14 @@ func (b *BbxtTools) StatisOursProductLossSum(now time.Time) (report []*ReportRes
) )
// 构建分组 // 构建分组
for _, v := range resellers { for _, v := range resellers {
if v.Total <= -100 && !slices.Contains(resellerBlackListProduct, v.ResellerName) { if v.Total <= -100 && !slices.Contains(resellerBlackList, v.ResellerName) {
total = append(total, []string{ total = append(total, []string{
fmt.Sprintf("%s", v.ResellerName), fmt.Sprintf("%s", v.ResellerName),
fmt.Sprintf("%.2f", v.Total), fmt.Sprintf("%.2f", v.Total),
}) })
totalSum += v.Total totalSum += v.Total
} }
if v.Total <= -500 && !slices.Contains(resellerBlackListProduct, v.ResellerName) { if v.Total <= -500 && !slices.Contains(resellerBlackList, v.ResellerName) {
gt = append(gt, v) gt = append(gt, v)
totalSum500 += v.Total totalSum500 += v.Total
} }