京西平台和其他平台商品的对比

This commit is contained in:
Rosy-zhudan
2019-08-02 17:38:07 +08:00
parent e3e57204f6
commit 876af999c3
3 changed files with 86 additions and 79 deletions

View File

@@ -1,7 +1,6 @@
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,23 +294,20 @@ 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列表"
// @Param token header string true "认证token"
// @Param vendorIDs formData string false "运营商ID列表(京东0 美团1 饿百3)"
// @Param storeIDs formData string false "京西门店ID列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /CheckSkuDiffBetweenJxAndVendor [get]
// @router /CheckSkuDiffBetweenJxAndVendor [post]
func (c *TempOpController) CheckSkuDiffBetweenJxAndVendor() {
c.callCheckSkuDiffBetweenJxAndVendor(func(params *tTempopCheckSkuDiffBetweenJxAndVendorParams) (retVal interface{}, errCode string, err error) {
var vendorIDList []string
if params.VendorIDList != "" {
vendorIDList = strings.Split(params.VendorIDList, ",")
var vendorIDList []int
var storeIDList []int
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDList, params.StoreIDs, &storeIDList); err == nil {
cms.CheckSkuDiffBetweenJxAndVendor(vendorIDList, storeIDList)
}
var storeIDList []string
if params.StoreIDList != "" {
storeIDList = strings.Split(params.StoreIDList, ",")
}
cms.CheckSkuDiffBetweenJxAndVendor(vendorIDList, storeIDList)
return retVal, "", err
})
}