- store lng and lat.
This commit is contained in:
@@ -284,8 +284,11 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
return num, err
|
||||
}
|
||||
|
||||
func CreateStore(ctx *jxcontext.Context, store *model.Store, userName string) (id int, err error) {
|
||||
func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (id int, err error) {
|
||||
store := &storeExt.Store
|
||||
existingID := store.ID
|
||||
storeExt.Lng = jxutils.StandardCoordinate2Int(storeExt.FloatLng)
|
||||
storeExt.Lat = jxutils.StandardCoordinate2Int(storeExt.FloatLat)
|
||||
dao.WrapAddIDCULDEntity(store, userName)
|
||||
store.ID = existingID
|
||||
if err = dao.CreateEntity(nil, store); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user