feat: 增加销量下滑分析报表功能

This commit is contained in:
renzhiyuan 2026-01-04 17:22:49 +08:00
parent 1ca305b3a0
commit f85bbc1fad
1 changed files with 7 additions and 0 deletions

View File

@ -548,6 +548,13 @@ func (d *DingTalkBotBiz) handleReport(ctx context.Context, rec *entitys.Recogniz
return _err
}
reports = append(reports, repo...)
case "report_sale_down_analysis":
product := strings.Split(group.ProductName, ",")
repo, _err := rep.GetStatisOfficialProductSumDecline(t, bbxt.DownWardValue, product, bbxt.SumFilter)
if _err != nil {
return _err
}
reports = append(reports, repo)
default:
return fmt.Errorf("未找到的报表:%s", rec.Match.Index)
}