京东商城改价修改
This commit is contained in:
@@ -506,9 +506,9 @@ func (v *VendorSync) SyncStoresSkus2(ctx *jxcontext.Context, parentTask tasksch.
|
|||||||
return nil, partner.AddVendorInfo2Err(err, loopMapInfo.VendorID)
|
return nil, partner.AddVendorInfo2Err(err, loopMapInfo.VendorID)
|
||||||
}, isContinueWhenError)
|
}, isContinueWhenError)
|
||||||
if task != nil {
|
if task != nil {
|
||||||
|
fmt.Println("testerr4", err)
|
||||||
err = makeSyncError(err)
|
err = makeSyncError(err)
|
||||||
}
|
}
|
||||||
fmt.Println("testerr4", err)
|
|
||||||
return hint, err
|
return hint, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -689,6 +689,7 @@ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, parentTask tasksch.I
|
|||||||
} else {
|
} else {
|
||||||
hint = task.GetID()
|
hint = task.GetID()
|
||||||
}
|
}
|
||||||
|
fmt.Println("testerr5", err)
|
||||||
return task, hint, err
|
return task, hint, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -672,7 +672,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
|
|||||||
specQuality = utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
|
specQuality = utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
|
||||||
}
|
}
|
||||||
if v.Comment != "" {
|
if v.Comment != "" {
|
||||||
specQuality += " " + v.Comment
|
specQuality = v.Comment
|
||||||
}
|
}
|
||||||
for _, v := range valuesSku {
|
for _, v := range valuesSku {
|
||||||
if v.Name == specQuality {
|
if v.Name == specQuality {
|
||||||
@@ -790,9 +790,9 @@ func buildUpdateSkusParam(storeSku *dao.StoreSkuSyncInfo, v *dao.StoreSkuSyncInf
|
|||||||
} else {
|
} else {
|
||||||
specQuality = utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
|
specQuality = utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
|
||||||
}
|
}
|
||||||
// if v.Comment != "" {
|
if v.Comment != "" {
|
||||||
// specQuality += " " + v.Comment
|
specQuality = v.Comment
|
||||||
// }
|
}
|
||||||
for _, vv := range valuesSku {
|
for _, vv := range valuesSku {
|
||||||
if vv.Name == specQuality {
|
if vv.Name == specQuality {
|
||||||
// if v.Comment == "" {
|
// if v.Comment == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user