京东商城改价修改

This commit is contained in:
苏尹岚
2020-06-10 17:40:08 +08:00
parent 3f71c43fa9
commit ded30b2a6b
2 changed files with 6 additions and 5 deletions

View File

@@ -506,9 +506,9 @@ func (v *VendorSync) SyncStoresSkus2(ctx *jxcontext.Context, parentTask tasksch.
return nil, partner.AddVendorInfo2Err(err, loopMapInfo.VendorID)
}, isContinueWhenError)
if task != nil {
fmt.Println("testerr4", err)
err = makeSyncError(err)
}
fmt.Println("testerr4", err)
return hint, err
}
@@ -689,6 +689,7 @@ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, parentTask tasksch.I
} else {
hint = task.GetID()
}
fmt.Println("testerr5", err)
return task, hint, err
}

View File

@@ -672,7 +672,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j
specQuality = utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
}
if v.Comment != "" {
specQuality += " " + v.Comment
specQuality = v.Comment
}
for _, v := range valuesSku {
if v.Name == specQuality {
@@ -790,9 +790,9 @@ func buildUpdateSkusParam(storeSku *dao.StoreSkuSyncInfo, v *dao.StoreSkuSyncInf
} else {
specQuality = utils.Float64ToStr(float64(v.SpecQuality)) + v.SpecUnit
}
// if v.Comment != "" {
// specQuality += " " + v.Comment
// }
if v.Comment != "" {
specQuality = v.Comment
}
for _, vv := range valuesSku {
if vv.Name == specQuality {
// if v.Comment == "" {