同步错误

This commit is contained in:
苏尹岚
2020-01-08 10:02:56 +08:00
parent 4f4e6698e7
commit b22d880bde

View File

@@ -665,6 +665,7 @@ func buildErrMsg(task tasksch.ITask) (err error) {
result := &SyncErrResult{ result := &SyncErrResult{
SkuID: vv.StoreSkuInfo.SkuID, SkuID: vv.StoreSkuInfo.SkuID,
StoreID: vv.StoreID, StoreID: vv.StoreID,
CategoryName: vv.CategoryName,
VendorID: vv.VendoreID, VendorID: vv.VendoreID,
VendorSkuID: vv.StoreSkuInfo.VendorSkuID, VendorSkuID: vv.StoreSkuInfo.VendorSkuID,
NameID: vv.StoreSkuInfo.NameID, NameID: vv.StoreSkuInfo.NameID,
@@ -676,7 +677,7 @@ func buildErrMsg(task tasksch.ITask) (err error) {
} }
} }
err = fmt.Errorf(utils.Format4Output(resultL, true)) err = fmt.Errorf(utils.Format4Output(resultL, true))
return err return makeSyncError(err)
} }
func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskName string, isAsync, isManageIt bool, vendorIDs []int, storeIDs []int, handler tasksch.WorkFunc, isContinueWhenError bool) (hint string, err error) { func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskName string, isAsync, isManageIt bool, vendorIDs []int, storeIDs []int, handler tasksch.WorkFunc, isContinueWhenError bool) (hint string, err error) {