Compare commits
No commits in common. "cf8a624dd0f3dc668c70957a6f09a9cb1679749f" and "eb398a4b4d16fdfe68ed6a61b854d8d43e2999e3" have entirely different histories.
cf8a624dd0
...
eb398a4b4d
|
|
@ -29,14 +29,6 @@ var resellerBlackList = []string{
|
|||
"通钱-2025年12月",
|
||||
}
|
||||
|
||||
var resellerBlackListProduct = []string{
|
||||
"悦跑",
|
||||
"电商-独立",
|
||||
"蓝星严选连续包月",
|
||||
"通钱-2025年12月",
|
||||
"彦浩同行",
|
||||
}
|
||||
|
||||
type BbxtTools struct {
|
||||
cacheDir string
|
||||
excelTempDir string
|
||||
|
|
@ -157,14 +149,14 @@ func (b *BbxtTools) StatisOursProductLossSum(now time.Time) (report []*ReportRes
|
|||
)
|
||||
// 构建分组
|
||||
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{
|
||||
fmt.Sprintf("%s", v.ResellerName),
|
||||
fmt.Sprintf("%.2f", 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)
|
||||
totalSum500 += v.Total
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue