优化性能
This commit is contained in:
parent
203e72f8a2
commit
d6e940803d
7
code.go
7
code.go
@ -546,11 +546,11 @@ var TptProject = Proj{
|
||||
|
||||
column := that.MakeCodeRouter[hotimeName].TableColumns[tableName][k]
|
||||
|
||||
if column == nil {
|
||||
if column == nil || column["link"] == nil && !(column["list"] == nil || column["list"] == true) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (column["list"] == nil || column["list"] == true) && column["name"] == "parent_id" && column.GetString("link") != "" {
|
||||
if column["name"] == "parent_id" {
|
||||
|
||||
parentC := that.Db.Get(column.GetString("link"), column.GetString("value"), Map{"id": v.GetCeilInt(k)})
|
||||
v[column.GetString("link")+"_"+column.GetString("name")+"_"+column.GetString("value")] = ""
|
||||
@ -559,8 +559,7 @@ var TptProject = Proj{
|
||||
}
|
||||
}
|
||||
|
||||
if column.GetString("link") != "" &&
|
||||
column.GetString("name") != "parent_id" {
|
||||
if column.GetString("name") != "parent_id" {
|
||||
reStr := ""
|
||||
|
||||
if column.GetString("value") == "name" && that.MakeCodeRouter[hotimeName].TableColumns[column.GetString("link")]["nickname"] != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user