价格统计
This commit is contained in:
@@ -53,7 +53,10 @@ func (c *ReportController) StatisticsReportForAfsOrders() {
|
||||
// @Description 查询京西门店商品价格统计相关信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param cityCodes formData string true "城市ID列表[1,2,3]"
|
||||
// @Param skuIDs formData string true "skuID列表[1,2,3]"
|
||||
// @Param skuIDs formData string false "skuID列表[1,2,3]"
|
||||
// @Param snapDate formData string true "某天的参考价格 格式:2006-01-02,默认前一天"
|
||||
// @Param offset formData int false "门店列表起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize formData int false "门店列表页大小(缺省为50,-1表示全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /StatisticsReportForStoreSkusPrice [post]
|
||||
@@ -61,7 +64,7 @@ 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 {
|
||||
retVal, err = report.StatisticsReportForStoreSkusPrice(params.Ctx, cityCodeList, skuIDList)
|
||||
retVal, err = report.StatisticsReportForStoreSkusPrice(params.Ctx, cityCodeList, skuIDList, params.SnapDate, params.Offset, params.PageSize)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user