1
This commit is contained in:
@@ -1595,8 +1595,6 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
|
||||
_, err = CurVendorSync.SyncStore(ctx, db, storeMap.VendorID, storeID, false, userName)
|
||||
_, err = CurVendorSync.FullSyncStoresSkus(ctx, db, []int{vendorID}, []int{storeID}, true, nil, true, true)
|
||||
if utils.IsNil(errList) && err == nil {
|
||||
globals.SugarLogger.Debug("utils.IsNil(errList)==============", utils.IsNil(errList))
|
||||
globals.SugarLogger.Debug("fakeErr===========%v,%v", errList, err)
|
||||
return outStoreMap, nil
|
||||
} else {
|
||||
return outStoreMap, errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, true), err))
|
||||
@@ -1786,7 +1784,6 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
||||
}
|
||||
dao.Commit(db, txDB)
|
||||
if isStoreMapNeedSync(vendorID, valid) {
|
||||
globals.SugarLogger.Debug("1.isStoreMapNeedSync(vendorID, valid)=================", isStoreMapNeedSync(vendorID, valid))
|
||||
_, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName)
|
||||
globals.SugarLogger.Debug("CurVendorSync.SyncStore:err======%v", err)
|
||||
}
|
||||
@@ -1794,7 +1791,6 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
||||
}
|
||||
errList.AddErr(err)
|
||||
endErr := errList.GetErrListAsOne()
|
||||
globals.SugarLogger.Info("endErr==============", endErr)
|
||||
return num, endErr
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user