Compare commits

..

4 Commits

Author SHA1 Message Date
fuzhongyun f1346a604c fix: 修改知识库容器名称 2026-01-08 13:49:31 +08:00
fuzhongyun ed46e3c435 Merge branch 'test' 2026-01-08 13:46:44 +08:00
renzhiyuan cf8a624dd0 Merge remote-tracking branch 'origin/master' 2026-01-08 10:35:53 +08:00
renzhiyuan aed04af9cd fix: 更新经销商黑名单数据处理逻辑 2026-01-08 10:35:36 +08:00
2 changed files with 11 additions and 3 deletions

View File

@ -34,7 +34,7 @@ docker rm -f ${CONTAINER_NAME}
# 依赖服务绑定同一网络,以便相互通信 # 依赖服务绑定同一网络,以便相互通信
docker network create "${NETWORK_NAME}" 2>/dev/null || true docker network create "${NETWORK_NAME}" 2>/dev/null || true
docker network connect "${NETWORK_NAME}" excel2pic 2>/dev/null || true docker network connect "${NETWORK_NAME}" excel2pic 2>/dev/null || true
docker network connect "${NETWORK_NAME}" l_ai_knowledge 2>/dev/null || true docker network connect "${NETWORK_NAME}" WeKnora-app 2>/dev/null || true
docker run -itd \ docker run -itd \
--name "${CONTAINER_NAME}" \ --name "${CONTAINER_NAME}" \

View File

@ -29,6 +29,14 @@ 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
@ -149,14 +157,14 @@ func (b *BbxtTools) StatisOursProductLossSum(now time.Time) (report []*ReportRes
) )
// 构建分组 // 构建分组
for _, v := range resellers { 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{ 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(resellerBlackList, v.ResellerName) { if v.Total <= -500 && !slices.Contains(resellerBlackListProduct, v.ResellerName) {
gt = append(gt, v) gt = append(gt, v)
totalSum500 += v.Total totalSum500 += v.Total
} }