diff --git a/code.go b/code.go index 060dbfc..9d3d696 100644 --- a/code.go +++ b/code.go @@ -46,7 +46,7 @@ var TptProject = Proj{ continue } - if (column["list"] == nil || column.GetBool("list")) && column.GetString("link") != "" { + if (column["info"] == nil || column.GetBool("info")) && column.GetString("link") != "" { seStr := "id," + column.GetString("value") if that.MakeCodeRouter[hotimeName].TableColumns[column.GetString("link")]["phone"] != nil { seStr = seStr + ",phone" diff --git a/code/makecode.go b/code/makecode.go index 19fba8d..6a38930 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -208,7 +208,7 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) { for _, ColumnName := range that.RuleConfig { if (ColumnName.GetBool("strict") && coloum.GetString("name") == ColumnName.GetString("name")) || (!ColumnName.GetBool("strict") && strings.Contains(coloum.GetString("name"), ColumnName.GetString("name"))) || - (info.GetString("name")+"."+coloum.GetString("name") == ColumnName.GetString("name")) { + (v.GetString("name")+"."+coloum.GetString("name") == ColumnName.GetString("name")) { //全部都不需要则不加入 if ColumnName.GetBool("edit") == false && ColumnName.GetBool("list") == false && ColumnName.GetBool("info") == false { coloum["notUse"] = true