畅销品自动关注条件修改,刷新中位价增加全国

This commit is contained in:
苏尹岚
2020-01-15 11:47:56 +08:00
parent ee7e1b0d3e
commit c5ad12bf29
2 changed files with 28 additions and 28 deletions

View File

@@ -517,7 +517,8 @@ func (c *StoreSkuController) GetTopCategoriesByStoreIDs() {
// @Title 根据门店刷新中位价
// @Description 根据门店刷新中位价
// @Param token header string true "认证token"
// @Param storeIDs query string true "门店列表"
// @Param isCountry formData bool true "是否按全国中位价刷新"
// @Param storeIDs formData string true "门店列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefershStoreSkusMidPrice [put]
@@ -525,7 +526,7 @@ func (c *StoreSkuController) RefershStoreSkusMidPrice() {
var storeIDList []int
c.callRefershStoreSkusMidPrice(func(params *tStoreSkuRefershStoreSkusMidPriceParams) (retVal interface{}, errCode string, err error) {
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
err = cms.RefershStoreSkusMidPrice(params.Ctx, storeIDList)
err = cms.RefershStoreSkusMidPrice(params.Ctx, storeIDList, params.IsCountry)
}
return retVal, "", err
})