- refactor sync.

This commit is contained in:
gazebo
2018-10-12 11:54:20 +08:00
parent 297f0a125f
commit 3145d371c0
4 changed files with 6 additions and 14 deletions

View File

@@ -9,7 +9,6 @@ import (
"git.rosy.net.cn/jx-callback/business/jxutils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner"
)
type SkuNamesInfo struct {
@@ -528,8 +527,8 @@ func DeleteSkuNamePlace(nameID, placeCode int, userName string) (num int64, err
}
func GetVendorSku(vendorID int, vendorSkuID string) (skuNameInfo *model.SkuNameExt, err error) {
if handler := GetPurchaseHandler(vendorID); handler != nil {
return handler.(partner.IMultipleStoresHandler).ReadSku(vendorSkuID)
if handler := CurVendorSync.GetMultiStoreHandler(vendorID); handler != nil {
return handler.ReadSku(vendorSkuID)
}
return nil, ErrCanNotFindVendor
}