From 2cfd02ef3b1c42c93e7813a452fb03851c3f44eb Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 29 Mar 2019 12:35:42 +0800 Subject: [PATCH] - fk --- business/jxstore/cms/store.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index fae859109..578570358 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -402,6 +402,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa // } // valid["districtCode"] = api.AutonaviAPI.GetCoordinateDistrictCode(lng, lat) // } + globals.SugarLogger.Debugf("UpdateStore track:%s, valid:%s", ctx.GetTrackInfo(), utils.Format4Output(valid, true)) if len(valid) > 0 { dao.Begin(db) defer func() { @@ -414,9 +415,12 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa }, model.FieldSyncStatus, syncStatus) if err = err2; err == nil { dao.Commit(db) + globals.SugarLogger.Debugf("UpdateStore track:%s, before call SyncStore", ctx.GetTrackInfo()) _, err = CurVendorSync.SyncStore(ctx, db, -1, store.ID, false, userName) } } + } else { + globals.SugarLogger.Debugf("UpdateStore track:%s, store:%s", ctx.GetTrackInfo(), utils.Format4Output(store, true)) } return num, err }