alpha环境启用isUseThingMap

This commit is contained in:
gazebo
2019-12-11 09:07:32 +08:00
parent d566ee38e3
commit 31704041a8
6 changed files with 18 additions and 14 deletions

View File

@@ -168,7 +168,7 @@ func OnCreateThing(ctx *jxcontext.Context, db *dao.DaoDB, thingID int64, thingTy
dao.WrapAddIDCULDEntity(thingMap, ctx.GetUserName())
errList.AddErr(dao.CreateEntity(db, thingMap))
}
if model.IsUseThingMap {
if globals.IsUseThingMap {
err = errList.GetErrListAsOne()
}
return err
@@ -196,7 +196,7 @@ func OnUpdateThing(ctx *jxcontext.Context, db *dao.DaoDB, thingID int64, thingTy
errList.AddErr(err2)
}
}
if model.IsUseThingMap {
if globals.IsUseThingMap {
err = errList.GetErrListAsOne()
}
return err
@@ -229,7 +229,7 @@ func OnDeleteThing(ctx *jxcontext.Context, db *dao.DaoDB, thingID int64, thingTy
errList.AddErr(err2)
}
}
if model.IsUseThingMap {
if globals.IsUseThingMap {
err = errList.GetErrListAsOne()
}
return err