- dont't use JdRange2JxRange.

This commit is contained in:
gazebo
2018-09-21 09:56:05 +08:00
parent 49a2d30f0e
commit d10869cef4
5 changed files with 16 additions and 6 deletions

View File

@@ -131,6 +131,16 @@ func (p *PurchaseHandler) UpdateStore(storeID int, userName string) (err error)
// todo remove out shop id
}
}
if err == nil {
mergeStatus := jxutils.MergeStoreStatus(store.Status, store.EbaiStoreStatus)
if mergeStatus == model.StoreStatusOpened {
err = api.EbaiAPI.ShopOnline("", utils.Str2Int64(store.VendorStoreID))
} else if mergeStatus == model.StoreStatusClosed {
err = api.EbaiAPI.ShopOffline("", utils.Str2Int64(store.VendorStoreID))
} else if mergeStatus == model.StoreStatusClosed {
err = api.EbaiAPI.ShopClose("", utils.Str2Int64(store.VendorStoreID))
}
}
}
}
}

View File

@@ -11,7 +11,7 @@ import (
)
// 京东到家,以有库存表示关注(认领)
func (p *PurchaseHandler) SyncStoreSkus(storeID int, skuIDs []int, isForce bool, userName string) (err error) {
func (p *PurchaseHandler) SyncStoreSku(storeID int, skuIDs []int, isForce bool, userName string) (err error) {
db := dao.GetDB()
var storeSkus []*model.StoreSkuBind
sqlParams := []interface{}{