feat: 增加销量下滑分析报表功能
This commit is contained in:
parent
1ca305b3a0
commit
f85bbc1fad
|
|
@ -548,6 +548,13 @@ func (d *DingTalkBotBiz) handleReport(ctx context.Context, rec *entitys.Recogniz
|
||||||
return _err
|
return _err
|
||||||
}
|
}
|
||||||
reports = append(reports, repo...)
|
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:
|
default:
|
||||||
return fmt.Errorf("未找到的报表:%s", rec.Match.Index)
|
return fmt.Errorf("未找到的报表:%s", rec.Match.Index)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue