修复部分bug
This commit is contained in:
parent
7535300107
commit
46cecc47ea
18
code.go
18
code.go
@ -22,16 +22,18 @@ var TptProject = Proj{
|
|||||||
tableName := that.RouterString[1]
|
tableName := that.RouterString[1]
|
||||||
|
|
||||||
data := that.Db.Get(fileConfig.GetString("table"), "*", Map{"id": that.Session(fileConfig.GetString("table") + "_id").ToCeilInt()})
|
data := that.Db.Get(fileConfig.GetString("table"), "*", Map{"id": that.Session(fileConfig.GetString("table") + "_id").ToCeilInt()})
|
||||||
str, inData := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db)
|
//str, inData := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db)
|
||||||
|
str, _ := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db)
|
||||||
where := Map{"id": that.RouterString[2]}
|
where := Map{"id": that.RouterString[2]}
|
||||||
|
|
||||||
if len(inData) == 1 {
|
//权限控制,暂时取消
|
||||||
inData["id"] = where["id"]
|
//if len(inData) == 1 {
|
||||||
where = Map{"AND": inData}
|
// inData["id"] = where["id"]
|
||||||
} else if len(inData) > 1 {
|
// where = Map{"AND": inData}
|
||||||
where["OR"] = inData
|
//} else if len(inData) > 1 {
|
||||||
where = Map{"AND": where}
|
// where["OR"] = inData
|
||||||
}
|
// where = Map{"AND": where}
|
||||||
|
//}
|
||||||
|
|
||||||
re := that.Db.Get(tableName, str, where)
|
re := that.Db.Get(tableName, str, where)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user