京西和平台商品差异

This commit is contained in:
Rosy-zhudan
2019-08-02 15:33:28 +08:00
parent 6b87bc5f27
commit 06d564331e
3 changed files with 99 additions and 45 deletions

View File

@@ -1,6 +1,7 @@
package controllers
import (
"strings"
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxstore/tempop"
@@ -295,12 +296,22 @@ func (c *TempOpController) TestStartOrEndOpStore() {
// @Title 京西平台和其他平台商品的对比
// @Description 京西平台和其他平台商品的对比
// @Param token header string true "认证token"
// @Param vendorIDList query string false "运营商ID列表(京东0 美团1 饿百3)"
// @Param storeIDList query string false "京西门店ID列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /CheckSkuDiffBetweenJxAndVendor [get]
func (c *TempOpController) CheckSkuDiffBetweenJxAndVendor() {
c.callCheckSkuDiffBetweenJxAndVendor(func(params *tTempopCheckSkuDiffBetweenJxAndVendorParams) (retVal interface{}, errCode string, err error) {
cms.CheckSkuDiffBetweenJxAndVendor()
var vendorIDList []string
if params.VendorIDList != "" {
vendorIDList = strings.Split(params.VendorIDList, ",")
}
var storeIDList []string
if params.StoreIDList != "" {
storeIDList = strings.Split(params.StoreIDList, ",")
}
cms.CheckSkuDiffBetweenJxAndVendor(vendorIDList, storeIDList)
return retVal, "", err
})
}