- fb.
This commit is contained in:
@@ -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) {
|
func CreateStore(store *model.Store, userName string) (id int, err error) {
|
||||||
|
db := dao.GetDB()
|
||||||
dao.WrapAddIDCULEntity(store, userName)
|
dao.WrapAddIDCULEntity(store, userName)
|
||||||
if err = dao.CreateEntity(nil, store); err == nil {
|
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
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ type tJdStoreInfo struct {
|
|||||||
JdCityCode int
|
JdCityCode int
|
||||||
JdDistrictCode int
|
JdDistrictCode int
|
||||||
JdStoreStatus int
|
JdStoreStatus int
|
||||||
VendorStoreID string `orm:"vendor_store_id"`
|
VendorStoreID string `orm:"column(vendor_store_id)"`
|
||||||
RealLastOperator string
|
RealLastOperator string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user