特殊处理err

This commit is contained in:
richboo111
2022-11-03 10:35:33 +08:00
parent cf0d209194
commit b062a2fc0e
2 changed files with 8 additions and 3 deletions

View File

@@ -1788,12 +1788,13 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
dao.Commit(db, txDB)
globals.SugarLogger.Debug("检查一下isStoreMapNeedSync(vendorID, valid)=============%s", isStoreMapNeedSync(vendorID, valid))
if isStoreMapNeedSync(vendorID, valid) {
globals.SugarLogger.Debugf("1.isStoreMapNeedSync(vendorID, valid)=================%v", 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)
}
}
}
globals.SugarLogger.Info("utils.IsNil(errList)==============", utils.IsNil(errList))
globals.SugarLogger.Debug("errList============", utils.Format4Output(errList, true))
return num, errors.New(fmt.Sprintf("errList=%v,err=%v", utils.Format4Output(errList, true), err))
}