价格参考

This commit is contained in:
苏尹岚
2019-12-06 09:04:55 +08:00
parent 25982cf994
commit c6abdbbd3e
6 changed files with 172 additions and 6 deletions

View File

@@ -61,8 +61,21 @@ func (c *ReportController) StatisticsReportForStoreSkusPrice() {
c.callStatisticsReportForStoreSkusPrice(func(params *tReportStatisticsReportForStoreSkusPriceParams) (retVal interface{}, errCode string, err error) {
var cityCodeList, skuIDList []int
if err = jxutils.Strings2Objs(params.CityCodes, &cityCodeList, params.SkuIDs, &skuIDList); err == nil {
err = report.StatisticsReportForStoreSkusPrice(params.Ctx, cityCodeList, skuIDList)
retVal, err = report.StatisticsReportForStoreSkusPrice(params.Ctx, cityCodeList, skuIDList)
}
return retVal, "", err
})
}
// @Title 生成价格参考数据
// @Description 生成价格参考数据
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /PriceRefer [post]
func (c *ReportController) PriceRefer() {
c.callPriceRefer(func(params *tReportPriceReferParams) (retVal interface{}, errCode string, err error) {
report.BeginSavePriceRefer(params.Ctx, nil, nil)
return retVal, "", err
})
}