Compare commits
No commits in common. "f1346a604c7314dd4d5cb23b4f02e91dfcf3fc6a" and "26b35675655ca98183723d2d575c3e48ab6a2e14" have entirely different histories.
f1346a604c
...
26b3567565
|
|
@ -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}" WeKnora-app 2>/dev/null || true
|
docker network connect "${NETWORK_NAME}" l_ai_knowledge 2>/dev/null || true
|
||||||
|
|
||||||
docker run -itd \
|
docker run -itd \
|
||||||
--name "${CONTAINER_NAME}" \
|
--name "${CONTAINER_NAME}" \
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue