- 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) {
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user