From 8f11160fa531d57459af611780cacf865f8fefad Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 17 Sep 2018 17:51:36 +0800 Subject: [PATCH] - fb. --- business/jxstore/cms/store.go | 4 +++- business/partner/purchase/jd/store.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 7af5be308..5b19afd52 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -241,9 +241,11 @@ func UpdateStore(storeID int, payload map[string]interface{}, userName string) ( } func CreateStore(store *model.Store, userName string) (id int, err error) { + db := dao.GetDB() dao.WrapAddIDCULEntity(store, userName) if err = dao.CreateEntity(nil, store); err == nil { - return store.ID, nil + err = CurVendorSync.SyncStore(db, -1, store, false, userName) + return store.ID, err } return 0, err } diff --git a/business/partner/purchase/jd/store.go b/business/partner/purchase/jd/store.go index 8994a9d28..cb6efc582 100644 --- a/business/partner/purchase/jd/store.go +++ b/business/partner/purchase/jd/store.go @@ -19,7 +19,7 @@ type tJdStoreInfo struct { JdCityCode int JdDistrictCode int JdStoreStatus int - VendorStoreID string `orm:"vendor_store_id"` + VendorStoreID string `orm:"column(vendor_store_id)"` RealLastOperator string }