价格参考
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user