This commit is contained in:
邹宗楠
2022-12-06 17:35:38 +08:00
parent a1847b2aae
commit f2e7ff0757
5 changed files with 32 additions and 3 deletions

View File

@@ -6102,3 +6102,7 @@ func BatchCreateFreeShipTemplate(relInfo map[string][]tiktok_store.RelInfo, ship
}
return "", nil
}
func GetVendorStoreBind(vendorStoreId string, vendorId int) (string, error) {
return dao.GetCodeAndIDByMeiTuan(vendorStoreId, vendorId)
}

View File

@@ -6642,7 +6642,7 @@ func SyncTiktokMainIdToLocal(ctx *jxcontext.Context, param *tiktok_store.MainSku
func BatchSetRestockingPrice(ctx *jxcontext.Context, preData map[string][]mtwmapi.SpuData) error {
var params []*mtwmapi.SpuData
for k, v := range preData {
if storeID, err := dao.GetCodeAndIDByMeiTuan(k); err != nil {
if storeID, err := dao.GetCodeAndIDByMeiTuan(k, model.VendorIDMTWM); err != nil {
return errors.New(fmt.Sprintf("获取京西本地门店ID失败:%v 请重试", err))
} else {
for _, i := range v {